Let "Initializing" be a pump state, not an action.
This commit is contained in:
parent
1bbc6d24c7
commit
8c27b32d07
4 changed files with 5 additions and 7 deletions
|
@ -36,10 +36,8 @@ import info.nightscout.androidaps.data.DetailedBolusInfo;
|
|||
import info.nightscout.androidaps.data.Profile;
|
||||
import info.nightscout.androidaps.data.PumpEnactResult;
|
||||
import info.nightscout.androidaps.db.CareportalEvent;
|
||||
import info.nightscout.androidaps.db.DatabaseHelper;
|
||||
import info.nightscout.androidaps.db.Source;
|
||||
import info.nightscout.androidaps.db.TemporaryBasal;
|
||||
import info.nightscout.androidaps.db.Treatment;
|
||||
import info.nightscout.androidaps.events.EventInitializationChanged;
|
||||
import info.nightscout.androidaps.events.EventRefreshOverview;
|
||||
import info.nightscout.androidaps.interfaces.ConstraintsInterface;
|
||||
|
@ -159,7 +157,7 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
|
|||
? "E" + ps.activeAlert.errorCode + ": " + ps.activeAlert.message
|
||||
: "W" + ps.activeAlert.warningCode + ": " + ps.activeAlert.message;
|
||||
} else if (ps.menu == null)
|
||||
return MainApp.gs(R.string.combo_pump_state_disconnected);
|
||||
return MainApp.gs(R.string.combo_pump_state_initializing);
|
||||
else if (ps.suspended && (ps.batteryState == PumpState.EMPTY || ps.insulinState == PumpState.EMPTY))
|
||||
return MainApp.gs(R.string.combo_pump_state_suspended_due_to_error);
|
||||
else if (ps.suspended)
|
||||
|
@ -373,7 +371,7 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
|
|||
}
|
||||
}
|
||||
|
||||
CommandResult stateResult = runCommand(MainApp.gs(R.string.combo_pump_action_initializing),1, ruffyScripter::readPumpState);
|
||||
CommandResult stateResult = runCommand(MainApp.gs(R.string.combo_pump_action_refreshing),1, ruffyScripter::readPumpState);
|
||||
if (!stateResult.success) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -736,7 +736,7 @@
|
|||
<string name="combo_error_partial_bolus_delivered">Wegen eines Fehlers wurden nur %.2f IE von den angeforderten %.2f IE abgegeben. Bitte prüfe den abgegebenen Bolus auf der Pumpe.</string>
|
||||
<string name="combo_history">Historie</string>
|
||||
<string name="combo_pump_action_refreshing">Status wird aktualisiert</string>
|
||||
<string name="combo_pump_action_initializing">Die Pumpe wird initialisiert</string>
|
||||
<string name="combo_pump_state_initializing">Die Pumpe wird initialisiert</string>
|
||||
<string name="combo_pump_connected_now">Jetzt</string>
|
||||
<string name="combo_pump_never_connected">Nie</string>
|
||||
<string name="combo_pump_tbr_cancelled_warrning">Der Alarm \"TBR ABBRUCH\" wurde bestätigt</string>
|
||||
|
|
|
@ -743,7 +743,7 @@
|
|||
<string name="combo_no_pump_connection">Geen verbinding gedurende %d minuten</string>
|
||||
<string name="combo_tbr_remaining">%d%% (%d min resterend)</string>
|
||||
<string name="combo_last_bolus">%.1f E (%s, %s)</string>
|
||||
<string name="combo_pump_action_initializing">Initialiseren</string>
|
||||
<string name="combo_pump_state_initializing">Initialiseren</string>
|
||||
<string name="combo_pump_state_disconnected">Verbinding verbroken</string>
|
||||
<string name="combo_error_bolus_recovery_progress">Herstel van verbroken verbindng</string>
|
||||
<string name="combo_warning">Waarschuwing</string>
|
||||
|
|
|
@ -821,7 +821,7 @@
|
|||
<string name="combo_no_pump_connection">No connection for %d min</string>
|
||||
<string name="combo_tbr_remaining">%d%% (%d min remaining)</string>
|
||||
<string name="combo_last_bolus">%.1f U (%s, %s)</string>
|
||||
<string name="combo_pump_action_initializing">Initializing</string>
|
||||
<string name="combo_pump_state_initializing">Initializing</string>
|
||||
<string name="combo_pump_state_disconnected">Disconnected</string>
|
||||
<string name="combo_pump_state_suspended_due_to_error">Suspended due to error</string>
|
||||
<string name="combo_pump_state_suspended_by_user">Suspended by user</string>
|
||||
|
|
Loading…
Reference in a new issue