Skip to content

Commit

Permalink
Fixed TPM2
Browse files Browse the repository at this point in the history
  • Loading branch information
Aircoookie committed May 23, 2020
1 parent 06b9b66 commit 0fc0999
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion wled00/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion wled00/wled.h
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
4 changes: 2 additions & 2 deletions wled00/wled_serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 0fc0999

Please sign in to comment.