Skip to content

Commit a013aec

Browse files
authored
fix(legacy): fix OK-21125 (#462)
1 parent 8550ab7 commit a013aec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

legacy/firmware/protect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ uint8_t protectWaitKey(uint32_t time_out, uint8_t mode) {
770770
usbTiny(1);
771771
timer_out_set(timer_out_oper, time_out);
772772
while (1) {
773-
if (layoutEnterSleep(1)) {
773+
if (layoutEnterSleep(1) && (layoutLast != layoutScreensaver)) {
774774
key = KEY_NULL;
775775
protectAbortedBySleep = true;
776776
break;

0 commit comments

Comments
 (0)