Skip to content

Commit

Permalink
Merge pull request #32 from ramonaoptics/fixup_startup_commands_undef…
Browse files Browse the repository at this point in the history
…ined

Fixup startup commands
  • Loading branch information
hmaarrfk authored Dec 12, 2024
2 parents 2747289 + 34db400 commit 1a91d75
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 0.6.0 (2024/12/11)

* Fix the usecase where an infinite loop would occur if no demo commands.

### 0.5.0 (2024/11/10)

* Provide the capability to define startup and demo commands.

### 0.4.0 (2024/01/04)

* Provide EEPROM commands.
Expand Down
4 changes: 4 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ void execute_demo_commands() {
if (!demo_enabled) {
return;
}
// No demo programs defined
if (teensy_to_any_demo_commands[0] == nullptr) {
return;
}
while (true) {
for (int i = 0; teensy_to_any_demo_commands[i] != nullptr; i++) {
cmd.processString(teensy_to_any_demo_commands[i]);
Expand Down

0 comments on commit 1a91d75

Please sign in to comment.