diff --git a/boards/xtensa/intel_s1000_crb/support/device.py b/boards/xtensa/intel_s1000_crb/support/device.py index e09dacf905c..06af65f3c59 100644 --- a/boards/xtensa/intel_s1000_crb/support/device.py +++ b/boards/xtensa/intel_s1000_crb/support/device.py @@ -82,10 +82,10 @@ class Device: max_wait = 0.1 # 100 ms time.sleep(min_wait) ready = self.irq_pin.read() - if ready == False: + if not ready: time.sleep(max_wait) ready = self.irq_pin.read() - if ready == False: + if not ready: print('Error: Device not ready', file=sys.stderr) return ready @@ -107,7 +107,7 @@ class Device: before return. """ rx_data = self.spi.transfer(data) - if wait == True: + if wait: self.check_device_ready() return rx_data diff --git a/boards/xtensa/intel_s1000_crb/support/messenger.py b/boards/xtensa/intel_s1000_crb/support/messenger.py index 21e939d2811..061556e3b97 100644 --- a/boards/xtensa/intel_s1000_crb/support/messenger.py +++ b/boards/xtensa/intel_s1000_crb/support/messenger.py @@ -79,7 +79,7 @@ class Message: print('RSP <<< NULL.') else: print('RSP <<< %s.' % self.cmd_rsp[rsp]) - if verbose == True: + if verbose: count = bitstruct.unpack_from('u32', msg, 4 * 8)[0] count &= 0x1ff for index in range(0, 8 + (count * 4), 4):