Skip to content

Commit 01285f0

Browse files
committed
0.8.138
* fix ePaper not functional #1722
1 parent 8f12bfe commit 01285f0

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

src/CHANGES.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Development Changes
22

3+
## 0.8.138 - 2024-08-15
4+
* fix ePaper not functional #1722
5+
36
## 0.8.137 - 2024-08-13
47
* fix storage of timezone and region #1723
58

src/defines.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//-------------------------------------
1414
#define VERSION_MAJOR 0
1515
#define VERSION_MINOR 8
16-
#define VERSION_PATCH 137
16+
#define VERSION_PATCH 138
1717
//-------------------------------------
1818
typedef struct {
1919
uint8_t ch;

src/network/AhoyEthernet.h

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ class AhoyEthernet : public AhoyWifi {
2222
};
2323

2424
public:
25+
AhoyEthernet()
26+
: mMode (Mode::WIRELESS) {}
27+
2528
virtual void begin() override {
2629
mMode = Mode::WIRELESS;
2730
mAp.enable();

src/plugins/Display/Display.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Display {
4545
case DISP_TYPE_T4_SSD1306_128X32: mMono = new DisplayMono128X32(); break; // SSD1306_128X32 (0.91")
4646
case DISP_TYPE_T5_SSD1306_64X48: mMono = new DisplayMono64X48(); break; // SSD1306_64X48 (0.66" - Wemos OLED Shield)
4747
case DISP_TYPE_T6_SSD1309_128X64: mMono = new DisplayMono128X64(); break; // SSD1309_128X64 (2.42")
48-
#if defined(ESP32) && !defined(ETHERNET)
48+
#if defined(ESP32)
4949
case DISP_TYPE_T10_EPAPER:
5050
mMono = NULL; // ePaper does not use this
5151
mRefreshCycle = 0;
@@ -73,7 +73,7 @@ class Display {
7373
}
7474

7575
void loop() {
76-
#if defined(ESP32) && !defined(ETHERNET)
76+
#if defined(ESP32)
7777
if ((nullptr != mCfg) && (DISP_TYPE_T10_EPAPER == mCfg->type)) {
7878
mEpaper.refreshLoop();
7979
}
@@ -96,7 +96,7 @@ class Display {
9696
mLoopCnt = 0;
9797
}
9898
}
99-
#if defined(ESP32) && !defined(ETHERNET)
99+
#if defined(ESP32)
100100
else if (DISP_TYPE_T10_EPAPER == mCfg->type) {
101101
// maintain ePaper at least every 15 seconds
102102
if (mNewPayload || (((++mLoopCnt) % 15) == 0)) {
@@ -193,7 +193,7 @@ class Display {
193193
if (mMono ) {
194194
mMono->disp();
195195
}
196-
#if defined(ESP32) && !defined(ETHERNET)
196+
#if defined(ESP32)
197197
else if (DISP_TYPE_T10_EPAPER == mCfg->type) {
198198
mEpaper.loop((totalPower), totalYieldDay, totalYieldTotal, nrprod);
199199
mRefreshCycle++;
@@ -254,7 +254,7 @@ class Display {
254254
RADIO *mHmsRadio = nullptr;
255255
uint16_t mRefreshCycle = 0;
256256

257-
#if defined(ESP32) && !defined(ETHERNET)
257+
#if defined(ESP32)
258258
DisplayEPaper mEpaper;
259259
#endif
260260
DisplayMono *mMono = nullptr;

0 commit comments

Comments
 (0)