v2.10.1 — Fix CC2 auth fallback loop
Bugfix
-
Fix CC2 auth fallback loop aborting before trying all passwords (#386)
v2.10.0's auth failure detection broke the password loop unconditionally on the first MQTT CONNACK rejection. This prevented CC2 printers that reject empty passwords (rc=5 "Not authorized") from ever reaching the default "123456" password.
- Only break on auth failure when the user explicitly provided an access code
- Reset auth failure flag between fallback attempts
- Fix misleading error log (was logging total list size instead of actual attempts made)
🙏 Huge thanks to @lantern-eight for this fix!