Skip to content

Commit 16a7001

Browse files
committed
code & boot .py changes & added contributor
1 parent 87486db commit 16a7001

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Download the zip (The 7.x-mpy variant), extract it & copy the libraries you want
4242

4343
-> [bill88t](https://github.com/bill88t) - @bill88t#4044<br />
4444
-> [Marios](https://github.com/mariospapaz) - @mariospapaz#2188
45+
-> [mdaadoun](https://github.com/mdaadoun)
4546

4647
<h3>Build instructions for linux:</h3>
4748

boot.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010

1111
devf = False
1212
stash = ""
13+
1314
try:
1415
with open('/devm', 'r') as f:
1516
stash += "Development mode file detected\n"
1617
devf = not devf
18+
1719
except OSError:
1820
pass
1921

@@ -22,15 +24,19 @@
2224
if(devf != True):
2325
disable_usb_drive()
2426
print("IN",end="")
27+
2528
else:
26-
remount("/", readonly=False)
29+
remount("/", readonly=False
30+
)
2731
print("I",end="")
2832
m = getmount("/")
2933
m.label = "Ljinux"
34+
3035
remount("/", readonly=True)
3136
print("N",end="")
3237

3338
print("UX",end="")
3439
disable_autoreload()
40+
3541
print(" boot core\n" + '-' * 16)
3642
print("Output:\n", stash)

code.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
from gc import collect
2424
from time import sleep
25+
2526
except ImportError:
2627
print("bootloader failure")
2728
exit(0)
@@ -90,18 +91,23 @@ def jrub(texx=None): #basic logging for the launcher
9091
collect()
9192
if (Exit_code == 245):
9293
reset()
94+
9395
elif (Exit_code == 244):
9496
print("[ OK ] Reached target: Halt")
9597
while True:
9698
sleep(3600)
99+
97100
elif (Exit_code == 243):
98101
on_next_reset(RunMode.BOOTLOADER)
99102
reset()
103+
100104
elif (Exit_code == 242):
101105
on_next_reset(RunMode.SAFE_MODE)
102106
reset()
107+
103108
elif (Exit_code == 241):
104109
on_next_reset(RunMode.UF2)
105110
reset()
111+
106112
else:
107113
exit(Exit_code)

0 commit comments

Comments
 (0)