From 1dba2b2f234be0740af8769ef977f130b646293e Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Tue, 2 Sep 2025 17:15:27 +0200 Subject: [PATCH] fix: reset weight counter logic and update spool ID in loop function --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 0864f16..b17fb23 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -220,7 +220,6 @@ void loop() { } // reset weight counter after writing tag - // TBD: what exactly is the logic behind this? if (currentMillis - lastWeightReadTime >= weightReadInterval && nfcReaderState != NFC_IDLE && nfcReaderState != NFC_READ_SUCCESS) { weigthCouterToApi = 0; @@ -272,7 +271,7 @@ void loop() { if(octoEnabled && sendOctoUpdate && spoolmanApiState == API_IDLE) { - updateSpoolOcto(autoSetToBambuSpoolId); + updateSpoolOcto(activeSpoolId.toInt()); sendOctoUpdate = false; } }