Mercurial > public > ostc4
comparison Discovery/Src/tComm.c @ 1022:ca713e199f22 GasConsumption
Add model ID 0x44 for the OSTC5 to the 0x60 (HARDWARE2) endpoint. The OSTC4 stays at model ID 0x43.
(mikeller)
| author | heinrichsweikamp |
|---|---|
| date | Sun, 29 Jun 2025 13:45:56 +0200 |
| parents | 5924a2d1d3ba |
| children | 158100a84ebd |
comparison
equal
deleted
inserted
replaced
| 1021:92d5e07d1a05 | 1022:ca713e199f22 |
|---|---|
| 1068 /* common to standard and bootloader */ | 1068 /* common to standard and bootloader */ |
| 1069 | 1069 |
| 1070 // get model + features | 1070 // get model + features |
| 1071 case 0x60: | 1071 case 0x60: |
| 1072 aTxBuffer[count++] = 0x00; // hardware descriptor HIGH byte | 1072 aTxBuffer[count++] = 0x00; // hardware descriptor HIGH byte |
| 1073 aTxBuffer[count++] = 0x3B; // hardware descriptor LOW byte // 0x3B is OSTC4 // 0x1A is OTSC3 | 1073 aTxBuffer[count++] = 0x3B; // hardware descriptor LOW byte // 0x3B is OSTC 4/5 // 0x1A is OTSC3 |
| 1074 aTxBuffer[count++] = 0x00; // feature descriptor HIGH byte | 1074 aTxBuffer[count++] = 0x00; // feature descriptor HIGH byte |
| 1075 aTxBuffer[count++] = 0x00; // feature descriptor LOW byte | 1075 aTxBuffer[count++] = 0x00; // feature descriptor LOW byte |
| 1076 aTxBuffer[count++] = 0x43; // model id | 1076 if (isNewDisplay()) { |
| 1077 aTxBuffer[count++] = 0x44; // model id OSTC5 | |
| 1078 } else { | |
| 1079 aTxBuffer[count++] = 0x43; // model id OSTC4 | |
| 1080 } | |
| 1077 aTxBuffer[count++] = prompt4D4C(receiveStartByteUart); | 1081 aTxBuffer[count++] = prompt4D4C(receiveStartByteUart); |
| 1078 break; | 1082 break; |
| 1079 | 1083 |
| 1080 // get model | 1084 // get model |
| 1081 case 0x6A: | 1085 case 0x6A: |
| 1082 aTxBuffer[count++] = 0x3B; // 0x3B is OSTC4 // 0x1A is OTSC3 | 1086 aTxBuffer[count++] = 0x3B; // 0x3B is OSTC 4/5 // 0x1A is OTSC3 |
| 1083 aTxBuffer[count++] = prompt4D4C(receiveStartByteUart); | 1087 aTxBuffer[count++] = prompt4D4C(receiveStartByteUart); |
| 1084 break; | 1088 break; |
| 1085 | 1089 |
| 1086 // get all firmware version and status (OSTC4 only) | 1090 // get all firmware version and status (OSTC4 only) |
| 1087 case 0x6B: | 1091 case 0x6B: |
