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