Skip to content

Commit

Permalink
Merge branch 'release/0.19.0' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
stylesuxx committed Feb 24, 2023
2 parents eacb6c3 + f3711c1 commit f5bb174
Show file tree
Hide file tree
Showing 9 changed files with 407 additions and 252 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
tags:
- '*'
pull_request:
pull_request_target:
branches:
- main
- develop
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/build
/tools/.wine
*.diff
.project

10 changes: 5 additions & 5 deletions BLHeliBootLoad.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
XTAL EQU 25000000

; Bootloader segment address
IF MCU_48MHZ < 2
IF MCU_TYPE < 2
BOOT_START EQU 1C00h
ELSEIF MCU_48MHZ == 2
ELSEIF MCU_TYPE == 2
BOOT_START EQU 0F000h
ENDIF

Expand Down Expand Up @@ -58,7 +58,7 @@ init:clr IE_EA
mov SP, #0c0h ; Stack = 64 upper bytes of RAM
; Initialize clock
mov CLKSEL, #00h ; Set clock divider to 1
IF MCU_48MHZ < 2
IF MCU_TYPE < 2
; Initialize VDD monitor
orl VDM0CN, #080h ; Enable the VDD monitor
ENDIF
Expand Down Expand Up @@ -239,9 +239,9 @@ pro4:djnz Xl, pro5
pro5:
clr C
mov A, DPH ; Check that address is not in bootloader area
IF MCU_48MHZ < 2
IF MCU_TYPE < 2
subb A, #1Ch
ELSEIF MCU_48MHZ == 2
ELSEIF MCU_TYPE == 2
subb A, #0F0h
ENDIF
jc ($+5)
Expand Down
Loading

0 comments on commit f5bb174

Please sign in to comment.