diff --git a/micropython/drivers/storage/sdcard/sdtest.py b/micropython/drivers/storage/sdcard/sdtest.py index 018ef7c64..bd4520ba6 100644 --- a/micropython/drivers/storage/sdcard/sdtest.py +++ b/micropython/drivers/storage/sdcard/sdtest.py @@ -26,10 +26,10 @@ def sdtest(): print(n, "bytes written") n = f.write(lines) print(n, "bytes written") - with open(fn, "r") as f: result1 = f.read() print(len(result1), "bytes read") + os.remove(fn) fn = "/fc/rats1.txt" print() @@ -37,10 +37,10 @@ def sdtest(): with open(fn, "w") as f: n = f.write(short) # one block print(n, "bytes written") - with open(fn, "r") as f: result2 = f.read() print(len(result2), "bytes read") + os.remove(fn) os.umount("/fc")
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: