l.add(new StatusItem("Brain State", state.getString())); l.add(new StatusItem("Last Interaction", JoH.niceTimeScalar(msSince(lastInteractionTime)))); l.add(new StatusItem("Last Wake Up", JoH.niceTimeScalar(msSince(last_wake_up_time))));
changeState(state.next()); break; changeState(state.next(), asking_backfill ? 1500 : DEFAULT_AUTOMATA_DELAY); break; UserError.Log.e(TAG, "Got invalid connection parameter reply msg"); changeState(state.next()); break; UserError.Log.ueh(TAG, thismsg); JoH.static_toast_long(thismsg); changeState(state.next()); break;
changeState(state.next()); break; changeState(state.next(), asking_backfill ? 1500 : DEFAULT_AUTOMATA_DELAY); break; UserError.Log.e(TAG, "Got invalid connection parameter reply msg"); changeState(state.next()); break; UserError.Log.ueh(TAG, thismsg); JoH.static_toast_long(thismsg); changeState(state.next()); break;
l.add(new StatusItem("Brain State", state.getString())); l.add(new StatusItem("Last Interaction", JoH.niceTimeScalar(msSince(lastInteractionTime)))); l.add(new StatusItem("Last Wake Up", JoH.niceTimeScalar(msSince(last_wake_up_time))));
STATE() { this.str = toString(); }
STATE() { this.str = toString(); }
private void check_calibrate() { final Pair<Long, Integer> calibration = Medtrum.getCalibration(); if (calibration != null) { status("Calibrating"); try { sendTx(new CalibrateTx(serial, calibration.first, calibration.second)); } catch (InvalidAlgorithmParameterException e) { UserError.Log.wtf(TAG, "Cannot calibrate: " + e); } } else { changeState(state.next()); } }
private void check_calibrate() { final Pair<Long, Integer> calibration = Medtrum.getCalibration(); if (calibration != null) { status("Calibrating"); try { sendTx(new CalibrateTx(serial, calibration.first, calibration.second)); } catch (InvalidAlgorithmParameterException e) { UserError.Log.wtf(TAG, "Cannot calibrate: " + e); } } else { changeState(state.next()); } }