mirror of
https://github.com/SlimeVR/SlimeVR-Tracker-ESP.git
synced 2026-04-06 02:01:57 +02:00
Send MCU type in handshake packet
This commit is contained in:
@@ -114,4 +114,11 @@
|
||||
#define batteryADCMultiplier 1.0 / 1024.0 * 5.0
|
||||
|
||||
#define FIRMWARE_BUILD_NUMBER 2
|
||||
#define FIRMWARE_VERSION "0.0.2"
|
||||
#define FIRMWARE_VERSION "0.0.2"
|
||||
#ifdef ESP8266
|
||||
#define HARDWARE_MCU 1
|
||||
#elif defined(ESP32)
|
||||
#define HARDWRAE_MCU 2
|
||||
#else
|
||||
#define HARDWARE_MCU 0
|
||||
#endif
|
||||
@@ -338,6 +338,7 @@ void sendHandshake() {
|
||||
Udp.write(convert_to_chars((uint64_t) 0, buf), sizeof(uint64_t));
|
||||
Udp.write(convert_to_chars((uint32_t) BOARD, buf), sizeof(uint32_t));
|
||||
Udp.write(convert_to_chars((uint32_t) IMU, buf), sizeof(uint32_t));
|
||||
Udp.write(convert_to_chars((uint32_t) HARDWARE_MCU, buf), sizeof(uint32_t));
|
||||
Udp.write(convert_to_chars((uint32_t) 0, buf), sizeof(uint32_t)); // TODO Send actual IMU hw version read from the chip
|
||||
Udp.write(convert_to_chars((uint32_t) 0, buf), sizeof(uint32_t));
|
||||
Udp.write(convert_to_chars((uint32_t) 0, buf), sizeof(uint32_t));
|
||||
|
||||
Reference in New Issue
Block a user