Skip to content

Commit

Permalink
fix: conditionally display action prompt based on touch capability
Browse files Browse the repository at this point in the history
  • Loading branch information
9dl committed Dec 1, 2024
1 parent 3e4c645 commit 21d6520
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/wifi/wifi_atks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ void wifi_atk_info(String tssid, String mac, uint8_t channel)
tft.drawString("AP: " + tssid, 10, 48);
tft.drawString("Channel: " + String(channel), 10, 66);
tft.drawString(mac, 10, 84);
tft.drawString("Press " + String(BTN_ALIAS) + " to act", 10, 102);
#if !defined(HAS_TOUCH)
tft.drawString("Press " + String(BTN_ALIAS) + " to act", 10, 102);
#endif

delay(300);
while (!checkSelPress())
Expand Down

0 comments on commit 21d6520

Please sign in to comment.