Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/menu_settime.asm @ 576:ab2686087bce
faster font display, code cleaning
author | heinrichsweikamp |
---|---|
date | Sun, 22 Apr 2012 14:38:10 +0200 |
parents | 1efd59d689f8 |
children | 6e456a6398e0 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_settime.asm Sat Apr 21 15:08:09 2012 +0200 +++ b/code_part1/OSTC_code_asm_part1/menu_settime.asm Sun Apr 22 14:38:10 2012 +0200 @@ -26,14 +26,10 @@ menu_settime: call PLED_ClearScreen + call menu_pre_loop_common ; Clear some menu flags, timeout and switches bcf set_minutes bcf menubit4 - bcf cursor - clrf timeout_counter2 - bcf menubit2 - bcf menubit3 - bcf sleepmode bcf set_year bcf set_day bcf set_month @@ -50,9 +46,6 @@ DISPLAYTEXT .24 ; Set Hours - bcf switch_right - bcf switch_left - settime_loop: btfsc switch_right call add_hours_or_minutes_or_date @@ -223,7 +216,7 @@ return add_hours_or_minutes_or_date: - bcf switch_left + call wait_switches ; Waits until switches are released, resets flag if button stays pressed! clrf secs btfsc set_year