Skip to content

Commit

Permalink
Print version in script
Browse files Browse the repository at this point in the history
  • Loading branch information
Spacehuhn committed Nov 16, 2022
1 parent a009f47 commit 59a246e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion USBNova.ino
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ void setup() {

// Create main_script.txt if it doesn't exist yet
if (!msc::exists(preferences::getMainScript().c_str())) {
msc::write(preferences::getMainScript().c_str(), "# Hello World\n", 14);
char message[21];
sprintf(message, "# USB Nova (v%s)\n", VERSION);
msc::write(preferences::getMainScript().c_str(), message, 20);
}

// Setup background tasks
Expand Down
2 changes: 1 addition & 1 deletion config.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#pragma once

#define VERSION "1.1.0"
#define VERSION "1.1.1"

// ===== DEBUG Settings ===== //
//#define ENABLE_DEBUG
Expand Down

0 comments on commit 59a246e

Please sign in to comment.