You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
microbitv2: Don't calculate the power source in the USB insertion interrupt.
As it caused problems in the KL27 port with a timer interrupt being
set up to wait for 3 ms inside the USB insertion interrupt.
Sets the timer interrupt to level 2 (second lowest, but higher
than the wake up pin and USB insertion), as the default is
level 0, over other important interrupts like USB and I2C.
Also removes the need to check for the power source when the
Interface is requested to go to sleep, as it only really needs to
know if it's "USB connected" (being on battery or USB power bank
should have the same effect, it should not behave differently in
battery power vs USB power bank).
0 commit comments