diff --git a/system-status.py b/system-status.py index f4db105..de03a08 100644 --- a/system-status.py +++ b/system-status.py @@ -18,8 +18,8 @@ class SystemStatus: self.hat.set_rotation(90) self.width, self.height = self.hat.get_shape() self.cpuStartColumn = 0 - self.cpuEndColumn = self.width / 2 - 1 - self.tempStartColumn = self.width / 2 + 1 + self.cpuEndColumn = int(self.width / 2) - 1 + self.tempStartColumn = int(self.width / 2) + 1 self.tempEndColumn = self.width - 1 def display(self):