Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixup startup commands #32

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading