Skip to content

Commit

Permalink
0.8.138
Browse files Browse the repository at this point in the history
* fix ePaper not functional #1722
  • Loading branch information
lumapu committed Aug 15, 2024
1 parent 8f12bfe commit 01285f0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions src/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Development Changes

## 0.8.138 - 2024-08-15
* fix ePaper not functional #1722

## 0.8.137 - 2024-08-13
* fix storage of timezone and region #1723

Expand Down
2 changes: 1 addition & 1 deletion src/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//-------------------------------------
#define VERSION_MAJOR 0
#define VERSION_MINOR 8
#define VERSION_PATCH 137
#define VERSION_PATCH 138
//-------------------------------------
typedef struct {
uint8_t ch;
Expand Down
3 changes: 3 additions & 0 deletions src/network/AhoyEthernet.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ class AhoyEthernet : public AhoyWifi {
};

public:
AhoyEthernet()
: mMode (Mode::WIRELESS) {}

virtual void begin() override {
mMode = Mode::WIRELESS;
mAp.enable();
Expand Down
10 changes: 5 additions & 5 deletions src/plugins/Display/Display.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Display {
case DISP_TYPE_T4_SSD1306_128X32: mMono = new DisplayMono128X32(); break; // SSD1306_128X32 (0.91")
case DISP_TYPE_T5_SSD1306_64X48: mMono = new DisplayMono64X48(); break; // SSD1306_64X48 (0.66" - Wemos OLED Shield)
case DISP_TYPE_T6_SSD1309_128X64: mMono = new DisplayMono128X64(); break; // SSD1309_128X64 (2.42")
#if defined(ESP32) && !defined(ETHERNET)
#if defined(ESP32)
case DISP_TYPE_T10_EPAPER:
mMono = NULL; // ePaper does not use this
mRefreshCycle = 0;
Expand Down Expand Up @@ -73,7 +73,7 @@ class Display {
}

void loop() {
#if defined(ESP32) && !defined(ETHERNET)
#if defined(ESP32)
if ((nullptr != mCfg) && (DISP_TYPE_T10_EPAPER == mCfg->type)) {
mEpaper.refreshLoop();
}
Expand All @@ -96,7 +96,7 @@ class Display {
mLoopCnt = 0;
}
}
#if defined(ESP32) && !defined(ETHERNET)
#if defined(ESP32)
else if (DISP_TYPE_T10_EPAPER == mCfg->type) {
// maintain ePaper at least every 15 seconds
if (mNewPayload || (((++mLoopCnt) % 15) == 0)) {
Expand Down Expand Up @@ -193,7 +193,7 @@ class Display {
if (mMono ) {
mMono->disp();
}
#if defined(ESP32) && !defined(ETHERNET)
#if defined(ESP32)
else if (DISP_TYPE_T10_EPAPER == mCfg->type) {
mEpaper.loop((totalPower), totalYieldDay, totalYieldTotal, nrprod);
mRefreshCycle++;
Expand Down Expand Up @@ -254,7 +254,7 @@ class Display {
RADIO *mHmsRadio = nullptr;
uint16_t mRefreshCycle = 0;

#if defined(ESP32) && !defined(ETHERNET)
#if defined(ESP32)
DisplayEPaper mEpaper;
#endif
DisplayMono *mMono = nullptr;
Expand Down

0 comments on commit 01285f0

Please sign in to comment.