Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-manuel committed Jun 15, 2024
1 parent 2232759 commit d3bd515
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
* Changed: Fixed problem with I-Controller https://github.com/Louisvdw/dbus-serialbattery/issues/1041 by @mr-manuel
* Changed: Fixed problem with linear limitation disabled https://github.com/Louisvdw/dbus-serialbattery/issues/1037 by @mr-manuel
* Changed: Fixed SoC is None on driver startup https://github.com/mr-manuel/venus-os_dbus-serialbattery/issues/32 by @mr-manuel
* Changed: Fixed some wrong paths in the post-hook commands by @juswes
* Changed: JKBMS BLE - Fixed problem with second temperature sensor, which was introduced with `v1.1.20240128dev` https://github.com/mr-manuel/venus-os_dbus-serialbattery/issues/26 by @mr-manuel
* Changed: Optimized SOC reset to 100% and 0% when `SOC_CALCULATION` is enabled by @mr-manuel
* Changed: Seplos BMS - Fixed temperature display https://github.com/Louisvdw/dbus-serialbattery/issues/1072 by @wollew
Expand Down
2 changes: 1 addition & 1 deletion etc/dbus-serialbattery/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _get_list_from_config(


# Constants
DRIVER_VERSION = "1.3.20240606dev"
DRIVER_VERSION = "1.3.20240615dev"
zero_char = chr(48)
degree_sign = "\N{DEGREE SIGN}"

Expand Down
8 changes: 4 additions & 4 deletions rc/post-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

# search for config.ini in USB root and copy it, if found
for dir in /media/*; do
if [ -f "/media/$dir/config.ini" ]; then
cp -f /media/$dir/config.ini /data/etc/dbus-serialbattery/config.ini
if [ -f "$dir/config.ini" ]; then
cp -f "$dir/config.ini" "/data/etc/dbus-serialbattery/config.ini"

# remove backup config.ini
if [ -f "/data/etc/dbus-serialbattery_config.ini.backup" ]; then
Expand All @@ -26,7 +26,7 @@ bash /data/etc/dbus-serialbattery/reinstall-local.sh

# rename the venus-data.tar.gz else the data is overwritten, if the USB is not removed
for dir in /media/*; do
if [ -f "/media/$dir/venus-data.tar.gz" ]; then
mv "/media/$dir/venus-data.tar.gz" "/media/$dir/venus-data_installed.tar.gz"
if [ -f "$dir/venus-data.tar.gz" ]; then
mv "$dir/venus-data.tar.gz" "$dir/venus-data_installed.tar.gz"
fi
done

0 comments on commit d3bd515

Please sign in to comment.