A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol
C arduinobluetoothcan-busdebuggingeepromesp32flipperzerogpiohardware-hackingi2cjtagopenocdprotocolspwmradiorfidspisubghzuartwifi
Disable scrollbar if not needed
Andrei Vladescu6be23b890eeb
diff --git a/src/Vendors/CardWifiSetup.cpp b/src/Vendors/CardWifiSetup.cppindex af6c6f4f..89e84593 100644--- a/src/Vendors/CardWifiSetup.cpp+++ b/src/Vendors/CardWifiSetup.cpp@@ -70,9 +70,10 @@ int scanWifiNetworks() {static void drawWifiList(int numNetworks, int topIndex, int selectedIndex, int x, int y0, int visibleRows, int rowHeight){+ bool showBar = (numNetworks > visibleRows);int screenWidth = M5Cardputer.Display.width();int listHeight = visibleRows * rowHeight;- int vbarWidth = 8;+ int vbarWidth = showBar ? 8 : 0;int vbarX = screenWidth - vbarWidth;int listWidth = screenWidth - vbarWidth - 2;@@ -97,6 +98,9 @@ static void drawWifiList(int numNetworks, int topIndex, int selectedIndex, int xM5Cardputer.Display.drawString(line, x, y);}+ if (!showBar)+ return;+// Overwrite scrollbar on top of the textM5Cardputer.Display.fillRect(vbarX, y0 - 2, vbarWidth, listHeight + 4, TFT_BLACK);if (numNetworks > visibleRows) {