mirror of
https://github.com/janishutz/BiogasControllerApp.git
synced 2025-11-25 13:54:24 +00:00
Fixed an error that lead to the app crashing when trying to read data from the microcontroller to only partially reprogram the controller.
This commit is contained in:
@@ -497,9 +497,9 @@ class Program(Screen):
|
|||||||
for i in range(4):
|
for i in range(4):
|
||||||
self.__x = com.receive(28)
|
self.__x = com.receive(28)
|
||||||
self.__a = str(com.decode_float(self.__x[0:6]))
|
self.__a = str(com.decode_float(self.__x[0:6]))
|
||||||
self.__b += str(com.decode_float(self.__x[7:13]))
|
self.__b = str(com.decode_float(self.__x[7:13]))
|
||||||
self.__c += str(com.decode_float(self.__x[14:20]))
|
self.__c = str(com.decode_float(self.__x[14:20]))
|
||||||
self.__temp += str(com.decode_float(self.__x[21:27]))
|
self.__temp = str(com.decode_float(self.__x[21:27]))
|
||||||
if self.__pos == 1:
|
if self.__pos == 1:
|
||||||
self.ids.s1_a.text = self.__a
|
self.ids.s1_a.text = self.__a
|
||||||
self.ids.s1_b.text = self.__b
|
self.ids.s1_b.text = self.__b
|
||||||
@@ -846,7 +846,7 @@ class Modify(Screen):
|
|||||||
self.csv_import.insert(0, 1)
|
self.csv_import.insert(0, 1)
|
||||||
else:
|
else:
|
||||||
self.csv_import.insert(0, 2)
|
self.csv_import.insert(0, 2)
|
||||||
logger.debug("Mode now:", self.csv_import)
|
logger.debug(f"Mode now: {self.csv_import}")
|
||||||
cvw.write_str("./config/config.csv", self.csv_import)
|
cvw.write_str("./config/config.csv", self.csv_import)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ sizeW = 800
|
|||||||
|
|
||||||
[Dev Settings]
|
[Dev Settings]
|
||||||
# Settings generally aimed towards the devs of this software!
|
# Settings generally aimed towards the devs of this software!
|
||||||
verbose = False
|
verbose = True
|
||||||
log_level = DEBUG
|
log_level = DEBUG
|
||||||
disableConnectionCheck = False
|
disableConnectionCheck = False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user