From d5fe4958f84eb9277b4ac4e6f5f72f07b8624310 Mon Sep 17 00:00:00 2001 From: Louis Van Der Walt <26077665+Louisvdw@users.noreply.github.com> Date: Thu, 16 Jun 2022 10:11:19 +0200 Subject: [PATCH] fixes and build for v0.12 (#133) * change install to location * install script will remove old sylinks * fix rc.local call to install * version 0.12 build --- etc/dbus-serialbattery/utils.py | 6 +++--- rc.local | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/dbus-serialbattery/utils.py b/etc/dbus-serialbattery/utils.py index 8af8e8cf..0b56c109 100644 --- a/etc/dbus-serialbattery/utils.py +++ b/etc/dbus-serialbattery/utils.py @@ -11,12 +11,12 @@ logger.setLevel(logging.INFO) # Constants - Need to dynamically get them in future -DRIVER_VERSION = 0.11 -DRIVER_SUBVERSION = 'b4' +DRIVER_VERSION = 0.12 +DRIVER_SUBVERSION = '' zero_char = chr(48) degree_sign = u'\N{DEGREE SIGN}' # Cell min/max voltages - used with the cell count to get the min/max battery voltage -MIN_CELL_VOLTAGE = 3.1 +MIN_CELL_VOLTAGE = 2.9 MAX_CELL_VOLTAGE = 3.45 # battery Current limits MAX_BATTERY_CURRENT = 50.0 diff --git a/rc.local b/rc.local index 74ac4635..4d59711e 100644 --- a/rc.local +++ b/rc.local @@ -1,2 +1,2 @@ #!/bin/bash -exec /data/etc/dbus-serialbattery/reinstalllocal.sh +sh /data/etc/dbus-serialbattery/reinstalllocal.sh