Skip to content

Commit

Permalink
Remove timer 2 as a menu switch; i de-documented it a few weeks ago; …
Browse files Browse the repository at this point in the history
…and it can cause the odd problem - so best it goes now
  • Loading branch information
benlumley committed Oct 12, 2022
1 parent 6334100 commit c5c69a6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions jni/fakehd/fakehd.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,7 @@ void fakehd_map_sd_character_map_to_hd(uint16_t sd_character_map[60][22], uint16
{
// if current element is fly min or throttle icon
// record the current position as the 'trigger' position
if (fakehd_trigger_x == 99 &&
(sd_character_map[x][y] == 0x9c // fly minutes icon (armed time)
||
sd_character_map[x][y] == fakehd_menu_switch_char
))
if (fakehd_trigger_x == 99 && sd_character_map[x][y] == fakehd_menu_switch_char)
{
DEBUG_PRINT("found fakehd triggger \n");
fakehd_trigger_x = x;
Expand All @@ -226,7 +222,6 @@ void fakehd_map_sd_character_map_to_hd(uint16_t sd_character_map[60][22], uint16
if (
fakehd_lock_center ||
(fakehd_trigger_x != 99 &&
sd_character_map[fakehd_trigger_x][fakehd_trigger_y] != 0x9c &&
sd_character_map[fakehd_trigger_x][fakehd_trigger_y] != fakehd_menu_switch_char))
{
render_x = x + 15;
Expand Down

0 comments on commit c5c69a6

Please sign in to comment.