Skip to content

Commit

Permalink
Rename firmware version into protocol version
Browse files Browse the repository at this point in the history
Bump protocol version to 18
  • Loading branch information
Eirenliel committed Oct 11, 2024
1 parent 6dd204c commit eeda8fa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
// Not recommended for production
#define ENABLE_INSPECTION false

#define FIRMWARE_BUILD_NUMBER 17
#define PROTOCOL_VERSION 18
#define FIRMWARE_VERSION "0.4.0-glove-test"

#endif // SLIMEVR_DEBUG_H_
2 changes: 1 addition & 1 deletion src/network/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ void Connection::sendTrackerDiscovery() {
MUST(sendInt(0));
MUST(sendInt(0));
MUST(sendInt(0));
MUST(sendInt(FIRMWARE_BUILD_NUMBER));
MUST(sendInt(PROTOCOL_VERSION));
MUST(sendShortString(FIRMWARE_VERSION));
// MAC address string
MUST(sendBytes(mac, 6));
Expand Down
9 changes: 7 additions & 2 deletions src/serial/serialcommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ namespace SerialCommands {
"SlimeVR Tracker, board: %d, hardware: %d, build: %d, firmware: %s, address: %s, mac: %s, status: %d, wifi state: %d",
BOARD,
HARDWARE_MCU,
FIRMWARE_BUILD_NUMBER,
PROTOCOL_VERSION,
FIRMWARE_VERSION,
WiFiNetwork::getAddress().toString().c_str(),
WiFi.macAddress().c_str(),
Expand All @@ -143,6 +143,11 @@ namespace SerialCommands {
sensor->isWorking() ? "true" : "false",
sensor->getHadData() ? "true" : "false"
);
logger.info("Sensor[%d]: %.3f tps, %.3f data tps",
sensor->getSensorId(),
sensor->m_tpsCounter.getAveragedTPS(),
sensor->m_dataCounter.getAveragedTPS()
);
}
logger.info(
"Battery voltage: %.3f, level: %.1f%%",
Expand Down Expand Up @@ -208,7 +213,7 @@ namespace SerialCommands {
"[TEST] Board: %d, hardware: %d, build: %d, firmware: %s, address: %s, mac: %s, status: %d, wifi state: %d",
BOARD,
HARDWARE_MCU,
FIRMWARE_BUILD_NUMBER,
PROTOCOL_VERSION,
FIRMWARE_VERSION,
WiFiNetwork::getAddress().toString().c_str(),
WiFi.macAddress().c_str(),
Expand Down

0 comments on commit eeda8fa

Please sign in to comment.