fix: reset weight counter logic and update spool ID in loop function

This commit is contained in:
2025-09-02 17:15:27 +02:00
parent cca0bd9dbe
commit 1dba2b2f23

View File

@@ -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;
}
}