Skip to content

Commit

Permalink
Merge remote-tracking branch 'biologist/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha committed Mar 1, 2022
2 parents ef8c2a8 + 073b417 commit 7de550d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

## Changelog
Last three events:
* 28.02.2022: Directive `MEASURE_BATTERY_MAX17055` added. Provides support for [MAX17055](https://www.maximintegrated.com/en/products/power/battery-management/MAX17055.html).
* 29.01.2022: Directive `INVERT_POWER` can now be used it invert power-GPIO. And port-expander can now be used for power.
* 13.11.2021: Command `CMD_TELL_IP_ADDRESS` can now be assigned to buttons in order to get information about the currently used IP-address via speech.
* 28.10.2021: Added feature `SAVE_PLAYPOS_WHEN_RFID_CHANGE`. When enabled last playposition for audiobook is saved when new RFID-tag is applied. Without having this feature enabled, it's necessary to press pause first, in order to do this manually.

## Known bugs
* Some webstreams don't run. Guess it's a combination of saturated connection-pool and lack of heap-memory. Works probably better if ESP32-WROVER (e.g. Lolin D32 pro) is used, as this chip has PSRAM. Advice: Don't enable modules (e.g. MQTT) if you don't need them as this could save memory (and trouble).
Expand Down
14 changes: 5 additions & 9 deletions src/BatteryMax17055.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
Log_Println(Log_Buffer, LOGLEVEL_DEBUG);

// if power was lost, restore model params
if (por) {
if (por) {
// TODO i18n necessary?
Log_Println("Battery detected power loss - loading fuel gauge parameters.", LOGLEVEL_NOTICE);
uint16_t rComp0 = gPrefsSettings.getUShort("rComp0", 0xFFFF);
Expand All @@ -47,12 +47,10 @@
if ((rComp0 & tempCo & fullCapRep & fullCapNom) != 0xFFFF) {
Log_Println("Successfully loaded fuel gauge parameters.", LOGLEVEL_NOTICE);
sensor.restoreLearnedParameters(rComp0, tempCo, fullCapRep, cycles, fullCapNom);
}
else {
} else {
Log_Println("Failed loading fuel gauge parameters.", LOGLEVEL_NOTICE);
}
}
else {
} else {
Log_Println("Battery continuing normal operation", LOGLEVEL_DEBUG);
}

Expand All @@ -75,8 +73,7 @@
batteryLow = vBatteryLow;
snprintf(Log_Buffer, Log_BufferLength, "%s: %.2f %%", (char *)FPSTR(batteryLowFromNVS), batteryLow);
Log_Println(Log_Buffer, LOGLEVEL_INFO);
}
else {
} else {
gPrefsSettings.putFloat("batteryLow", batteryLow);
}

Expand All @@ -85,8 +82,7 @@
batteryCritical = vBatteryCritical;
snprintf(Log_Buffer, Log_BufferLength, "%s: %.2f %%", (char *)FPSTR(batteryCriticalFromNVS), batteryCritical);
Log_Println(Log_Buffer, LOGLEVEL_INFO);
}
else {
} else {
gPrefsSettings.putFloat("batteryCritical", batteryCritical);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/revision.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_H__
#define __REVISION_H__
constexpr const char softwareRevision[] PROGMEM = "Software-revision: 20220223-1";
constexpr const char softwareRevision[] PROGMEM = "Software-revision: 20220228-1";
#endif

0 comments on commit 7de550d

Please sign in to comment.