A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol
C arduinobluetoothcan-busdebuggingeepromesp32flipperzerogpiohardware-hackingi2cjtagopenocdprotocolspwmradiorfidspisubghzuartwifi
minor fix on views
Geocda3297c201a
diff --git a/src/Vendors/CardWifiSetup.cpp b/src/Vendors/CardWifiSetup.cppindex 801a496c..7665a893 100644--- a/src/Vendors/CardWifiSetup.cpp+++ b/src/Vendors/CardWifiSetup.cpp@@ -56,7 +56,7 @@ int scanWifiNetworks() {M5Cardputer.Display.setTextSize(1.5);M5.Lcd.fillRoundRect(20, 20, M5.Lcd.width() - 40, M5.Lcd.height() - 40, 5, 0x0841);M5.Lcd.drawRoundRect(20, 20, M5.Lcd.width() - 40, M5.Lcd.height() - 40, 5, 0x05A3);- M5Cardputer.Display.drawString("Scanning Networks...", 32, 60);+ M5Cardputer.Display.drawString("Scanning Networks", 45, 60);networksCount = WiFi.scanNetworks();if (networksCount == 0) {diff --git a/src/Views/M5DeviceView.cpp b/src/Views/M5DeviceView.cppindex 13209cc0..e4c2303f 100644--- a/src/Views/M5DeviceView.cpp+++ b/src/Views/M5DeviceView.cpp@@ -50,6 +50,7 @@ void M5DeviceView::show(PinoutConfig& config) {if (mappings.empty()) {noMapping();+ return;}int boxHeight = 24;@@ -188,14 +189,14 @@ void M5DeviceView::showModeName(std::string& mode, int y) {void M5DeviceView::noMapping() {// Box frame- M5.Lcd.drawRoundRect(10, 35, M5.Lcd.width() - 20, 90, DEFAULT_ROUND_RECT, PRIMARY_COLOR);+ M5.Lcd.drawRoundRect(10, 28, M5.Lcd.width() - 20, 97, DEFAULT_ROUND_RECT, PRIMARY_COLOR);// Descriptionstd::string map = "No mapping defined";M5.Lcd.setTextSize(1.5);M5.Lcd.setTextColor(TEXT_COLOR);int16_t titleX = (M5.Lcd.width() - M5.Lcd.textWidth(map.c_str())) / 2;- M5.Lcd.setCursor(titleX, 75);+ M5.Lcd.setCursor(titleX, 70);M5.Lcd.printf(map.c_str());}