Merge branch 'main' into recyclingfabrik

This commit is contained in:
2025-08-28 11:16:43 +02:00
6 changed files with 53 additions and 11 deletions

View File

@@ -1004,9 +1004,10 @@ bool checkSpoolmanInstance() {
Serial.println("Error contacting spoolman instance! HTTP Code: " + String(httpCode));
}
http.end();
returnValue = false;
spoolmanApiState = API_IDLE;
}else{
}
else
{
// If the check is skipped, return the previous status
Serial.println("Skipping spoolman healthcheck, API is active.");
returnValue = spoolmanConnected;

View File

@@ -171,7 +171,9 @@ void loop() {
oledShowMessage("Scale not calibrated");
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
}else{
}
else
{
// Ausgabe der Waage auf Display
if(pauseMainTask == 0)
{

View File

@@ -48,6 +48,8 @@ void scale_loop(void * parameter) {
Serial.println("Scale Loop started");
Serial.println("++++++++++++++++++++++++++++++");
scale.tare();
for(;;) {
if (scale.is_ready())
{
@@ -120,7 +122,7 @@ void start_scale(bool touchSensorConnected) {
if (scale.wait_ready_timeout(1000))
{
scale.set_scale(calibrationValue); // this value is obtained by calibrating the scale with known weights; see the README for details
scale.tare();
//scale.tare();
}
// Display Gewicht