From 69b5d113ee0b6389173028f41a1caad6c32201f5 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 16 Oct 2024 13:02:15 +0100 Subject: [PATCH] Redundancy in Imports --- firmware/PIMORONI_BADGER2040/lib/badger_os.py | 1 - firmware/PIMORONI_BADGER2040W/lib/badger_os.py | 1 - 2 files changed, 2 deletions(-) diff --git a/firmware/PIMORONI_BADGER2040/lib/badger_os.py b/firmware/PIMORONI_BADGER2040/lib/badger_os.py index ce4cc19..fc00c23 100644 --- a/firmware/PIMORONI_BADGER2040/lib/badger_os.py +++ b/firmware/PIMORONI_BADGER2040/lib/badger_os.py @@ -81,7 +81,6 @@ def state_save(app, data): f.write(json.dumps(data)) f.flush() except OSError: - import os try: os.stat("/state") except OSError: diff --git a/firmware/PIMORONI_BADGER2040W/lib/badger_os.py b/firmware/PIMORONI_BADGER2040W/lib/badger_os.py index ce4cc19..fc00c23 100644 --- a/firmware/PIMORONI_BADGER2040W/lib/badger_os.py +++ b/firmware/PIMORONI_BADGER2040W/lib/badger_os.py @@ -81,7 +81,6 @@ def state_save(app, data): f.write(json.dumps(data)) f.flush() except OSError: - import os try: os.stat("/state") except OSError: