Compare commits
2 Commits
45a623cff6
...
5db80d3670
Author | SHA1 | Date | |
---|---|---|---|
5db80d3670 | |||
2b195ed9ea |
@@ -59,6 +59,7 @@ void setup() {
|
|||||||
|
|
||||||
// Scale
|
// Scale
|
||||||
start_scale(touchSensorConnected);
|
start_scale(touchSensorConnected);
|
||||||
|
scaleTareRequest = true;
|
||||||
|
|
||||||
// WDT initialisieren mit 10 Sekunden Timeout
|
// WDT initialisieren mit 10 Sekunden Timeout
|
||||||
bool panic = true; // Wenn true, löst ein WDT-Timeout einen System-Panik aus
|
bool panic = true; // Wenn true, löst ein WDT-Timeout einen System-Panik aus
|
||||||
|
@@ -81,7 +81,7 @@ void onWsEvent(AsyncWebSocket *server, AsyncWebSocketClient *client, AwsEventTyp
|
|||||||
else if (doc["type"] == "scale") {
|
else if (doc["type"] == "scale") {
|
||||||
uint8_t success = 0;
|
uint8_t success = 0;
|
||||||
if (doc["payload"] == "tare") {
|
if (doc["payload"] == "tare") {
|
||||||
scaleTareRequest == true;
|
scaleTareRequest = true;
|
||||||
success = 1;
|
success = 1;
|
||||||
//success = tareScale();
|
//success = tareScale();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user