mirror of
https://github.com/opentx/opentx.git
synced 2025-07-17 21:35:27 +03:00
Fixes telemetry stream confusion (#4386)
[S.PORT] DIY range updated: 0x5000 to 0x52ff is full DIY range 0x5000 to 0x50ff is DIY streaming range 0x5100 to 0x52ff is DIY sensor range
This commit is contained in:
parent
40ece81de2
commit
d594843de2
2 changed files with 3 additions and 1 deletions
|
@ -141,6 +141,8 @@
|
||||||
#define RBOX_CNSP_LAST_ID 0x0b3f
|
#define RBOX_CNSP_LAST_ID 0x0b3f
|
||||||
#define DIY_FIRST_ID 0x5000
|
#define DIY_FIRST_ID 0x5000
|
||||||
#define DIY_LAST_ID 0x52ff
|
#define DIY_LAST_ID 0x52ff
|
||||||
|
#define DIY_STREAM_FIRST_ID 0x5000
|
||||||
|
#define DIY_STREAM_LAST_ID 0x50ff
|
||||||
#define RSSI_ID 0xf101
|
#define RSSI_ID 0xf101
|
||||||
#define ADC1_ID 0xf102
|
#define ADC1_ID 0xf102
|
||||||
#define ADC2_ID 0xf103
|
#define ADC2_ID 0xf103
|
||||||
|
|
|
@ -210,7 +210,7 @@ void sportProcessTelemetryPacket(const uint8_t * packet)
|
||||||
sportProcessTelemetryPacket(id, 0, instance, servosState);
|
sportProcessTelemetryPacket(id, 0, instance, servosState);
|
||||||
sportProcessTelemetryPacket(id, 1, instance, rboxState);
|
sportProcessTelemetryPacket(id, 1, instance, rboxState);
|
||||||
}
|
}
|
||||||
else if (id >= DIY_FIRST_ID && id <= DIY_LAST_ID) {
|
else if (id >= DIY_STREAM_FIRST_ID && id <= DIY_STREAM_LAST_ID) {
|
||||||
#if defined(LUA)
|
#if defined(LUA)
|
||||||
if (luaInputTelemetryFifo && luaInputTelemetryFifo->hasSpace(sizeof(SportTelemetryPacket))) {
|
if (luaInputTelemetryFifo && luaInputTelemetryFifo->hasSpace(sizeof(SportTelemetryPacket))) {
|
||||||
SportTelemetryPacket luaPacket;
|
SportTelemetryPacket luaPacket;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue