FEATURE: impl refill pump cooldown logic

This commit is contained in:
Robin Dietzel 2023-01-13 14:53:47 +01:00
parent 55a11ec980
commit ed4c53c740
2 changed files with 6 additions and 8 deletions

View File

@ -7,6 +7,6 @@
// Auto generated header file containing the last git revision // Auto generated header file containing the last git revision
#define GIT_HASH "9b50d90" #define GIT_HASH "ed9a66b"
#endif //FLOATPUMP_GIT_REVISION_TEMPLATE_H #endif //FLOATPUMP_GIT_REVISION_TEMPLATE_H

View File

@ -286,19 +286,17 @@ int main(void) {
} }
/*display.LCDSetCursor(0, 3); display.LCDSetCursor(0, 3);
if (S_refillempty) { if (S_refillcooldown > 0) {
display.LCDSendCString(const_cast<char *>(std::string("Cooldown: " + std::to_string(S_refillcooldown / 60) + "min").c_str()));
} else if (S_refillempty) {
display.LCDSendCString(const_cast<char *>(std::string("Nachspeisung mangel ").c_str())); display.LCDSendCString(const_cast<char *>(std::string("Nachspeisung mangel ").c_str()));
HAL_GPIO_WritePin(LED3_GPIO_Port, LED3_Pin, GPIO_PIN_RESET); HAL_GPIO_WritePin(LED3_GPIO_Port, LED3_Pin, GPIO_PIN_RESET);
} else { } else {
display.LCDSendCString(const_cast<char *>(std::string("Nachspeisung ok ").c_str())); display.LCDSendCString(const_cast<char *>(std::string("Nachspeisung ok ").c_str()));
HAL_GPIO_WritePin(LED3_GPIO_Port, LED3_Pin, GPIO_PIN_SET); HAL_GPIO_WritePin(LED3_GPIO_Port, LED3_Pin, GPIO_PIN_SET);
}*/ }
display.LCDSetCursor(0, 3);
//if (S_refillcooldown > 0) {
display.LCDSendCString(const_cast<char *>(std::string("Cooldown: " + std::to_string(S_refillcooldown) + "s").c_str()));
//}
//Check for rotation to enable display backlight //Check for rotation to enable display backlight
if (old_pos < rot_counter) { if (old_pos < rot_counter) {