Skip to content

Commit 62d15dc

Browse files
committed
Fix - MagTag text size, wrong WipperSnapper object called
1 parent 8de12dd commit 62d15dc

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

src/components/display/controller.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,10 @@ bool DisplayController::Handle_Display_AddOrReplace(
8787
display->showSplash();
8888
WS.runNetFSM();
8989
display->drawStatusBar(WS._config.aio_user);
90-
WS.feedWDT();
90+
WS.runNetFSM();
9191

9292
_hw_instances.push_back(display); // Store the display instance
9393
WS_DEBUG_PRINTLN("[display] Display added or replaced successfully!");
94-
WS.feedWDT();
9594
WS.runNetFSM();
9695
return true;
9796
}
@@ -176,10 +175,8 @@ void DisplayController::update(int32_t rssi, bool is_connected) {
176175
// yet.
177176
WS_DEBUG_PRINTLN("[display] Updating status bar...");
178177
hw_instance->updateStatusBar(rssi, 100, is_connected);
178+
WS.runNetFSM();
179179
}
180-
181-
WS.feedWDT();
182-
WS.runNetFSM();
183180
}
184181

185182
/*!

src/components/display/controller.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#include "Wippersnapper.h"
1818
#include "hardware.h"
1919

20-
class Wippersnapper_V2; ///< Forward declaration
21-
class DisplayHardware; ///< Forward declaration
20+
class Wippersnapper; ///< Forward declaration
21+
class DisplayHardware; ///< Forward declaration
2222

2323
/**************************************************************************/
2424
/*!
@@ -43,5 +43,5 @@ class DisplayController {
4343
_hw_instances; ///< Holds pointers to DisplayHardware instances
4444
unsigned long _last_bar_update; ///< Timestamp of last status bar update
4545
};
46-
extern Wippersnapper Ws; ///< Global WS instance
46+
extern Wippersnapper WS; ///< Global WS instance
4747
#endif

src/components/display/drivers/dispDrvThinkInkGrayscale4T5.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
class dispDrvThinkInkGrayscale4T5 : public dispDrvBase {
2626
public:
2727
/*!
28-
@brief Constructor for the ThinkInk Grayscale 4-level EAAMFGN display
29-
driver.
28+
@brief Constructor for the ThinkInk Grayscale T5 EPD display driver.
3029
@param dc
3130
Data/Command pin for the display.
3231
@param rst
@@ -53,7 +52,7 @@ class dispDrvThinkInkGrayscale4T5 : public dispDrvBase {
5352
}
5453

5554
/*!
56-
@brief Attempts to initialize the ThinkInk Grayscale 4-level EAAMFGN
55+
@brief Attempts to initialize the ThinkInk Grayscale 4 T5 EPD
5756
display driver.
5857
@param mode
5958
The ThinkInk mode to use for the display.
@@ -70,7 +69,6 @@ class dispDrvThinkInkGrayscale4T5 : public dispDrvBase {
7069
// Initialize the display
7170
_display->begin(mode);
7271
// Configure display settings
73-
_text_sz = 3;
7472
_display->setTextSize(_text_sz);
7573
_display->setTextColor(EPD_BLACK);
7674
_display->setTextWrap(false);

src/components/display/hardware.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,7 @@ bool DisplayHardware::beginEPD(
238238
_drvDisp = nullptr;
239239
return false;
240240
}
241-
WS_DEBUG_PRINTLN("[display] Text Magnification: ");
242-
WS_DEBUG_PRINTLN(config->text_size);
241+
243242
_drvDisp->setTextSize(config->text_size);
244243

245244
if (!_drvDisp->begin(epd_mode)) {

0 commit comments

Comments
 (0)