# HG changeset patch # User mh@mh-THINK # Date 1424387722 -3600 # Node ID f6548e8f06f5a547894db77f7c5d157e61310049 # Parent e1e5876bd77759536bffb84e5976f404028cf958 Bugfix: Check for divemode before checking for menu diff -r e1e5876bd777 -r f6548e8f06f5 src/surfmode.asm --- a/src/surfmode.asm Wed Feb 18 23:07:04 2015 +0100 +++ b/src/surfmode.asm Fri Feb 20 00:15:22 2015 +0100 @@ -194,6 +194,9 @@ call update_surfloop60 ; yes, e.g. update time and date ; Mode tasks + btfsc divemode ; Divemode active? + goto diveloop ; Yes, switch into Divemode! + btfsc menubit ; Menu? goto do_main_menu ; Menu! @@ -238,8 +241,6 @@ bra surfloop_loop4 call TFT_dump_screen ; Dump the screen contents surfloop_loop4: - btfsc divemode ; Divemode active? - goto diveloop ; Yes, switch into Divemode! btfsc sleepmode ; Sleepmode active? goto sleeploop ; Yes, switch into sleepmode!