mirror of
https://github.com/opentx/opentx.git
synced 2025-07-14 11:59:50 +03:00
Merge the enums TelemetryProtocol and TelemetryProtocols (#6676)
This commit is contained in:
parent
40fe6022b4
commit
9e52de7a49
10 changed files with 37 additions and 46 deletions
|
@ -1285,7 +1285,7 @@ static int luaSetTelemetryValue(lua_State * L)
|
|||
zname[3] = hex2zchar((id & 0x000f) >> 0);
|
||||
}
|
||||
if (id | subId | instance) {
|
||||
int index = setTelemetryValue(TELEM_PROTO_LUA, id, subId, instance, value, unit, prec);
|
||||
int index = setTelemetryValue(PROTOCOL_TELEMETRY_LUA, id, subId, instance, value, unit, prec);
|
||||
if (index >= 0) {
|
||||
TelemetrySensor &telemetrySensor = g_model.telemetrySensors[index];
|
||||
telemetrySensor.id = id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue