Skip to content

Commit

Permalink
bfo按键修复
Browse files Browse the repository at this point in the history
  • Loading branch information
losehu committed Sep 22, 2024
1 parent 20ff1f4 commit 9874cdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/si.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ void SI_key(KEY_Code_t key, bool KEY_TYPE1, bool KEY_TYPE2, bool KEY_TYPE3, KEY_
case KEY_SIDE1:
case KEY_SIDE2:
if (SI47XX_IsSSB()) {
if (key == KEY_UP ? (bfo < INT16_MAX - 10) : (bfo > INT16_MIN + 10)) {
bfo = bfo + (key == KEY_UP ? 10 : -10);
if (key == KEY_SIDE1 ? (bfo < INT16_MAX - 10) : (bfo > INT16_MIN + 10)) {
bfo = bfo + (key == KEY_SIDE1 ? 10 : -10);
}
SI47XX_SetBFO(bfo);
}
Expand Down

0 comments on commit 9874cdb

Please sign in to comment.