Skip to content

Commit

Permalink
Merge pull request #167 from losehu/test
Browse files Browse the repository at this point in the history
bfo按键修复
  • Loading branch information
losehu authored Sep 22, 2024
2 parents 61e5d01 + 9874cdb commit 9aa077e
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 9aa077e

Please sign in to comment.