Fixed TPM2

This commit is contained in:
cschwinne 2020-05-23 16:09:49 +02:00
parent 06b9b66272
commit 0fc099926f
4 changed files with 8 additions and 4 deletions

View File

@ -2,6 +2,10 @@
### Development versions after 0.10.0 release
#### Build 2005230
- Fixed TPM2
#### Build 2005220
- Added TPM2.NET protocol support (need to set WLED broadcast UDP port to 65506)

View File

@ -315,7 +315,7 @@ void serializeInfo(JsonObject root)
case REALTIME_MODE_UDP: root["lm"] = "UDP"; break;
case REALTIME_MODE_HYPERION: root["lm"] = "Hyperion"; break;
case REALTIME_MODE_E131: root["lm"] = "E1.31"; break;
case REALTIME_MODE_ADALIGHT: root["lm"] = F("USB Adalight/TPM2");
case REALTIME_MODE_ADALIGHT: root["lm"] = F("USB Adalight/TPM2"); break;
case REALTIME_MODE_ARTNET: root["lm"] = "Art-Net"; break;
case REALTIME_MODE_TPM2NET: root["lm"] = F("tpm2.net"); break;
}

View File

@ -8,7 +8,7 @@
*/
// version code in format yymmddb (b = daily build)
#define VERSION 2005220
#define VERSION 2005230
// ESP8266-01 (blue) got too little storage space to work with all features of WLED. To use it, you must use ESP8266 Arduino Core v2.4.2 and the setting 512K(No SPIFFS).

View File

@ -36,7 +36,7 @@ void handleSerial()
switch (state) {
case AdaState::Header_A:
if (next == 'A') state = AdaState::Header_d;
else if (next == 0x9C) { //TPM2 start byte
else if (next == 0xC9) { //TPM2 start byte
state = AdaState::TPM2_Header_Type;
}
break;
@ -74,7 +74,7 @@ void handleSerial()
state = AdaState::TPM2_Header_CountLo;
break;
case AdaState::TPM2_Header_CountLo:
count += next /3 + 1;
count += next /3;
state = AdaState::Data_Red;
break;
case AdaState::Data_Red: