fix: update auto set logic to check RFID tag before setting Bambu spool

This commit is contained in:
Manuel Weiser 2025-02-25 10:57:36 +01:00
parent 08f37186b4
commit 8499613215

View File

@ -114,6 +114,8 @@ void loop() {
// Wenn Bambu auto set Spool aktiv
if (autoSendToBambu && autoSetToBambuSpoolId > 0 && currentMillis - lastAutoSetBambuAmsTime >= autoSetBambuAmsInterval)
{
if (hasReadRfidTag == 0)
{
lastAutoSetBambuAmsTime = currentMillis;
oledShowMessage("Auto Set " + String(autoSetBambuAmsCounter - autoAmsCounter) + "s");
@ -126,6 +128,11 @@ void loop() {
oledShowWeight(weight);
}
}
else
{
autoAmsCounter = 0;
}
}
// Wenn Waage nicht Kalibriert