And as Sergey said, if you changed the code if the ADC2 pin is not pulled to GND, VBUS checking won't work.
Was it also not working before your changes?
From the
readme:
At bootup, Luftboot uses several criteria (in this order) to decide whether to jump
to the payload or to initiate the bootloader:
- On boot, if the payload is NOT valid, start the bootloader
- If the flag is set indicating we just downloaded a payload, jump to payload
- If the payload is forcing the bootloader (using GPIO state after core-only reset) start the bootloader
- If the ADC2 pin on Lisa/M is grounded, jump to payload (i.e. "skip bootloader" jumper)
- If voltage is present on the USB vbus, start the bootloader
- Otherwise, jump to payload