From b79b60976a125fb0061a2a82d92bacdca39f740c Mon Sep 17 00:00:00 2001 From: Mike Cifelli <1836280-mike-cifelli@users.noreply.gitlab.com> Date: Thu, 17 Jun 2021 09:11:22 -0400 Subject: [PATCH] Fix error --- system-status.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):