fix: add manual tare functionality for scale

This commit is contained in:
Manuel Weiser 2025-03-29 14:44:33 +01:00
parent 83d14b32d1
commit 823db6157c

View File

@ -38,11 +38,15 @@ void scale_loop(void * parameter) {
for(;;) {
if (scale.is_ready())
{
// Waage nochmal Taren, wenn zu lange Abweichung
// Waage manuell Taren
if (scaleTareRequest == true)
{
Serial.println("Re-Tare scale");
oledShowMessage("TARE Scale");
vTaskDelay(pdMS_TO_TICKS(1000));
scale.tare();
vTaskDelay(pdMS_TO_TICKS(1000));
oledShowWeight(0);
scaleTareRequest = false;
}