diff --git a/appstore.mpy b/appstore.mpy index 36e3cd3c..bd843807 100644 --- a/appstore.mpy +++ b/appstore.mpy @@ -192,3 +192,18 @@ else: label.set_text("Block Height: Wi-Fi Error") + +print(os.listdir('/')) + +try: + with open('/boot.py', 'r') as file: + print("Contents of /boot.py:") + print("-" * 20) + for line in file: + print(line.rstrip()) # Remove trailing newlines for clean output +except OSError as e: + print("Error reading /boot.py:", e) + + +with open('/block_height.txt', 'w') as f: + f.write('853123')