Skip to content

Commit

Permalink
Include full firmware version in test mode welcome message
Browse files Browse the repository at this point in the history
Test mode will likely the easiest way for a user to determine which firmware version their machine is running; as we head into wider testing rounds, it seems quite valuable to make this information easily available.
  • Loading branch information
jonathanperret authored and dl1com committed Aug 27, 2024
1 parent f69d0e7 commit 8fc9b96
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ayab/tester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,9 @@ void Tester::encoderAChange() {
void Tester::setUp() {
// Print welcome message
GlobalCom::sendMsg(AYAB_API::testRes, "AYAB Hardware Test, ");
snprintf(buf, BUFFER_LEN, "Firmware v%hhu", FW_VERSION_MAJ);
GlobalCom::sendMsg(AYAB_API::testRes, buf);
snprintf(buf, BUFFER_LEN, ".%hhu", FW_VERSION_MIN);
snprintf(buf, BUFFER_LEN, "Firmware v%hhu.%hhu.%hhu", FW_VERSION_MAJ, FW_VERSION_MIN, FW_VERSION_PATCH);
GlobalCom::sendMsg(AYAB_API::testRes, buf);
GlobalCom::sendMsg(AYAB_API::testRes, FW_VERSION_SUFFIX);
snprintf(buf, BUFFER_LEN, " API v%hhu\n\n", API_VERSION);
GlobalCom::sendMsg(AYAB_API::testRes, buf);
helpCmd();
Expand Down

0 comments on commit 8fc9b96

Please sign in to comment.