Skip to content

Commit

Permalink
fix: Increase bootloader signal duration
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasvr committed Apr 7, 2021
1 parent 0b15dc3 commit bffd76e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Bluejay.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3652,14 +3652,19 @@ init_no_signal:
mov Flash_Key_1, #0 ; Initialize flash keys to invalid values
mov Flash_Key_2, #0

mov Temp1, #250 ; Check if input signal is high for more than 15ms
mov Temp1, #9 ; Check if input signal is high for ~150ms
input_high_check_1:
mov Temp2, #250
mov Temp2, #0
input_high_check_2:
mov Temp3, #0
input_high_check_3:
jnb RTX_PORT.RTX_PIN, bootloader_done ; Look for low
djnz Temp3, input_high_check_3
djnz Temp2, input_high_check_2
djnz Temp1, input_high_check_1

call beep_f2_short ; Bootloader beep
call beep_f1
ljmp 1C00h ; Jump to bootloader

bootloader_done:
Expand Down

0 comments on commit bffd76e

Please # to comment.