mirror of
https://github.com/tugsi/Filaman.git
synced 2026-11-12 18:50:38 +01:00
fix: update auto set logic to check RFID tag before setting Bambu spool
This commit is contained in:
1 parent
08f37186b4
commit
8499613215
1 file changed
+7
@@ -114,6 +114,8 @@ void loop() {
|
|||||||
|
|
||||||
// Wenn Bambu auto set Spool aktiv
|
// Wenn Bambu auto set Spool aktiv
|
||||||
if (autoSendToBambu && autoSetToBambuSpoolId > 0 && currentMillis - lastAutoSetBambuAmsTime >= autoSetBambuAmsInterval)
|
if (autoSendToBambu && autoSetToBambuSpoolId > 0 && currentMillis - lastAutoSetBambuAmsTime >= autoSetBambuAmsInterval)
|
||||||
|
{
|
||||||
|
if (hasReadRfidTag == 0)
|
||||||
{
|
{
|
||||||
lastAutoSetBambuAmsTime = currentMillis;
|
lastAutoSetBambuAmsTime = currentMillis;
|
||||||
oledShowMessage("Auto Set " + String(autoSetBambuAmsCounter - autoAmsCounter) + "s");
|
oledShowMessage("Auto Set " + String(autoSetBambuAmsCounter - autoAmsCounter) + "s");
|
||||||
@@ -126,6 +128,11 @@ void loop() {
|
|||||||
oledShowWeight(weight);
|
oledShowWeight(weight);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
autoAmsCounter = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Wenn Waage nicht Kalibriert
|
// Wenn Waage nicht Kalibriert
|
||||||
|
|||||||
Reference in new issue
Block a user