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:
janis
2022-05-16 17:27:16 +02:00
parent fd8412d7d4
commit e42e446bc1
2 changed files with 5 additions and 5 deletions

View File

@@ -497,9 +497,9 @@ class Program(Screen):
for i in range(4):
self.__x = com.receive(28)
self.__a = str(com.decode_float(self.__x[0:6]))
self.__b += str(com.decode_float(self.__x[7:13]))
self.__c += str(com.decode_float(self.__x[14:20]))
self.__temp += str(com.decode_float(self.__x[21:27]))
self.__b = str(com.decode_float(self.__x[7:13]))
self.__c = str(com.decode_float(self.__x[14:20]))
self.__temp = str(com.decode_float(self.__x[21:27]))
if self.__pos == 1:
self.ids.s1_a.text = self.__a
self.ids.s1_b.text = self.__b
@@ -846,7 +846,7 @@ class Modify(Screen):
self.csv_import.insert(0, 1)
else:
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)

View File

@@ -7,7 +7,7 @@ sizeW = 800
[Dev Settings]
# Settings generally aimed towards the devs of this software!
verbose = False
verbose = True
log_level = DEBUG
disableConnectionCheck = False