Skip to content

Commit

Permalink
fix: 🐛 slot misconfiguration bug and bin absence error
Browse files Browse the repository at this point in the history
  • Loading branch information
meisZWFLZ committed Jan 1, 2024
1 parent c29ccf4 commit 36ec9af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/VexDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export class V5Brain {
const bin = files.filter(
(e) => e != null && e.filename === programName + ".bin",
)[0];
if (bin?.timestamp === 0 || bin.size === 0) continue;
if (bin == null || bin.timestamp === 0 || bin.size === 0) continue;

const n = new Date();
n.setTime(1000 * bin.timestamp);
Expand Down
3 changes: 2 additions & 1 deletion src/VexIniConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ export class ProgramIniConfig {
.addObjProperty("name", 32)
.addObjProperty("description", 256)
.addObjProperty("icon", 16)
.addObjProperty("iconalt", 16),
.addObjProperty("iconalt", 16)
.addObjProperty("slot", 16),
)
.addComment("")
.addSection(
Expand Down

0 comments on commit 36ec9af

Please sign in to comment.