klipper: fix $mcu.serial guard when $mcu.enableKlipperFlash

This patch allows to set $mcu.canbus_uuid by setting
$mcu.enableKlipperFlash to false.
This commit is contained in:
David Guibert
2025-11-09 21:08:15 +01:00
parent ffd468f28a
commit 01698a9baa
+1 -1
View File
@@ -217,7 +217,7 @@ in
}
]
++ lib.mapAttrsToList (mcu: firmware: {
assertion = firmware.enable -> firmware.serial != null;
assertion = firmware.enableKlipperFlash -> firmware.serial != null;
message = ''
Unable to determine the serial connection for services.klipper.firmwares."${mcu}". Please set one of the following: