Browse Source

fix changes from merge

pull/498/head
lumapu 2 years ago
parent
commit
dc9eda5ee3
  1. 1
      src/CHANGES.md
  2. 6
      src/app.cpp
  3. 2
      src/hm/hmRadio.h

1
src/CHANGES.md

@ -6,3 +6,4 @@
* generate `bin.gz` only for 1M device ESP8285
* fix calcSunrise was not called every day
* incresed number of allowed characters for MQTT user, broker and password
* added NRF24 info to Systeminfo, thanks @DanielR92

6
src/app.cpp

@ -62,14 +62,14 @@ void app::setup() {
DPRINTLN(DBG_WARN, F("WARNING! your NRF24 module can't be reached, check the wiring"));
// when WiFi is in client mode, then enable mqtt broker
if ((mConfig->mqtt.broker[0] > 0) && (WiFi.getMode() == WIFI_STA)) {
mMqtt.setup(&mConfig->mqtt, mConfig->sys.deviceName, mVersion, mSys, &mTimestamp, &mSunrise, &mSunset);
#if !defined(AP_ONLY)
if (mConfig->mqtt.broker[0] > 0) {
mPayload.addListener(std::bind(&PubMqttType::payloadEventListener, &mMqtt, std::placeholders::_1));
everySec(std::bind(&PubMqttType::tickerSecond, &mMqtt));
everyMin(std::bind(&PubMqttType::tickerMinute, &mMqtt));
mMqtt.setSubscriptionCb(std::bind(&app::mqttSubRxCb, this, std::placeholders::_1));
}
#endif
setupLed();
mWeb = new web(this, mConfig, &mStat, mVersion);

2
src/hm/hmRadio.h

@ -296,7 +296,7 @@ class HmRadio {
return mNrf24.isChipConnected();
}
rf24_datarate_e getDataRate(void) {
uint8_t getDataRate(void) {
return mNrf24.getDataRate();
}

Loading…
Cancel
Save