From fac16ac5d29c354f63a38e970fb3b22e0c099c61 Mon Sep 17 00:00:00 2001
From: Quentin Bolsee <quentin.bolsee@cba.mit.edu>
Date: Tue, 3 Oct 2023 03:34:06 +0000
Subject: [PATCH] Update README.md

---
 README.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 4f949de..780a974 100644
--- a/README.md
+++ b/README.md
@@ -113,8 +113,8 @@ This module includes a basic tool to update the main file on the MicroPython dev
 # test_upload.py (Python)
 import mpy_bridge
 
-# instantiate the device on serial port COM34
-d = mpy_bridge.Device("COM34")
+# instantiate device, skip init in case main file is missing
+d = mpy_bridge.Device("COM34", init=False)
 
 # upload main file
 d.upload("embedded/main.py", "main.py")
-- 
GitLab