From 284551a11e46c18967a710597ab2869b3e65aab2 Mon Sep 17 00:00:00 2001 From: Drew Hintz Date: Wed, 13 Mar 2024 16:56:24 -0500 Subject: [PATCH] remove unnecessary strip() int() already ignores whitespace --- pywalt/pywalt/walt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywalt/pywalt/walt.py b/pywalt/pywalt/walt.py index f57b533..46b29d6 100644 --- a/pywalt/pywalt/walt.py +++ b/pywalt/pywalt/walt.py @@ -136,7 +136,7 @@ def sndrcv(self, data): def read_shock_time(self): dt, s = self.sndrcv(Walt.CMD_GSHOCK) - t_us = int(s.strip()) + t_us = int(s) return t_us