Skip to content

Commit 04882b9

Browse files
committed
fix MPY version test for CP 10
1 parent c2845e9 commit 04882b9

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

assets/lib/circup.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const MPY_HEADERS = {
1010
7: ["C".codePointAt(0), 5],
1111
8: ["C".codePointAt(0), 5],
1212
9: ["C".codePointAt(0), 6],
13+
10: ["C".codePointAt(0), 6],
14+
"default": ["C".codePointAt(0), 6],
1315
}
1416

1517
// Fuctions for getting and comparing version numbers in semver format (more or less).
@@ -39,6 +41,8 @@ class Circup {
3941
this.MPY_HEADER = null
4042
if(MPY_HEADERS[cpver] != undefined) {
4143
this.MPY_HEADER = MPY_HEADERS[cpver]
44+
} else {
45+
this.MPY_HEADER = MPY_HEADERS["default"]
4246
}
4347
}
4448

assets/main/board_page.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ tr.odd { background: var(--color-pair1); }
207207
#file_list td a.path {
208208
display: block;
209209
padding: 4px 6px 6px;
210+
text-decoration: none;
210211
}
211212
#file_list td a.path:hover {
212213
background: var(--hover-background);

assets/main/board_page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function start_circup() {
3939
cpver = await board_control.cp_version()
4040
if(cpver == null) {
4141
console.log("No CP version found, assume latest ?")
42-
cpver = [8, 0, 0]
42+
cpver = [10, 0, 0]
4343
}
4444
console.log("Using CP version:", cpver)
4545
// 2 - setup the library bundle with the version from the board

0 commit comments

Comments
 (0)