Skip to content

Commit

Permalink
0.8.14
Browse files Browse the repository at this point in the history
* display improvments #1248 #1247
* fixed overflow in `hmRadio.h` #1244
  • Loading branch information
lumapu committed Dec 7, 2023
1 parent c771c2e commit c3863f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions src/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Development Changes

## 0.8.14 - 2023-12-07
* fixed decimal points for temperature (WebUI) PR #1254
* fixed inverter statemachine available state PR #1252
* fixed NTPUpdate and sunrise calculation #1240 #886
* fixed decimal points for temperature (WebUI) PR #1254 #1251
* fixed inverter statemachine available state PR #1252 #1253
* fixed NTP update and sunrise calculation #1240 #886
* display improvments #1248 #1247
* fixed overflow in `hmRadio.h` #1244

## 0.8.13 - 2023-11-28
* merge PR #1239 symbolic layout for OLED 128x64 + motion senser functionality
Expand Down
10 changes: 5 additions & 5 deletions src/hm/hmRadio.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ class HmRadio : public Radio {
if(NULL == mLastIv) // prevent reading on NULL object!
return;

uint32_t startMicros = micros() + 5110;
uint32_t loopMillis = millis() + 400;
while (millis() < loopMillis) {
while (micros() < startMicros) { // listen (4088us or?) 5110us to each channel
uint32_t startMicros = micros();
uint32_t loopMillis = millis();
while ((millis() - loopMillis) < 400) {
while ((micros() - startMicros) < 5110) { // listen (4088us or?) 5110us to each channel
if (mIrqRcvd) {
mIrqRcvd = false;

Expand All @@ -129,7 +129,7 @@ class HmRadio : public Radio {
if(++mRxChIdx >= RF_CHANNELS)
mRxChIdx = 0;
mNrf24.setChannel(mRfChLst[mRxChIdx]);
startMicros = micros() + 5110;
startMicros = micros();
}
// not finished but time is over
if(++mRxChIdx >= RF_CHANNELS)
Expand Down

0 comments on commit c3863f4

Please sign in to comment.