refactor/tank-enum-state #7
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "refactor/tank-enum-state"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
So das ist jetzt in einem Zustand in dem es wieder kompiliert.
Ich habe auch die Struktur für das MQTT etwas ausgeweitet, das sollte jetzt etwas mehr informationen schicken.
Offener Punkt: Es gab hier noch serial logs von denen ich mir unsicher bin an welcher stelle man die wieder einführen könnte. Dazu müsste man sich mal noch gedanken machen, bevor es gemerged wird. Da gab es nämlich auch boad faults die aktiviert wurden!
@EmpirePhoenix Was denkst du zu dem neuen State hanlding mit Enums?
bbbe6d846f
to5722fc18b2
This should fix #6 and is one improvement that is relevant to #3
5722fc18b2
to267578ef0b
3a702cb84f
toead011ec0b
ead011ec0b
tofbf1a84e7d
@ -0,0 +102,4 @@
Err(err) => { tank_err = Some(err); None },
Ok(left_ml) => Some(left_ml),
};
let enough_water = self.enough_water(config).unwrap_or(false); //NOTE: is this correct if there is an error assume not enough water?
would depend on config if tank errors are allowed to be ignored
@ -751,0 +682,4 @@
match tank_state.enough_water(&config.tank) {
Err(_tank_err) => {
if !config.tank.tank_allow_pumping_if_sensor_error {
// ignore is ok
in the state based old code, this did not set state.water, so it was skipped, should probably set no_water to true
Pull request closed