Instance numbers synced with FrSky servo channel changer, and displayed on telemetry page to ease choosing a new ID
This commit is contained in:
@@ -478,6 +478,8 @@ void menuModelTelemetry(uint8_t event)
|
|||||||
else {
|
else {
|
||||||
lcd_putsAtt(TELEM_COL2, y, "---", 0); // TODO shortcut
|
lcd_putsAtt(TELEM_COL2, y, "---", 0); // TODO shortcut
|
||||||
}
|
}
|
||||||
|
TelemetrySensor * sensor = & g_model.telemetrySensors[index];
|
||||||
|
lcd_outdezAtt(TELEM_COL2+10*FW, y, sensor->instance, 0);
|
||||||
if (attr) {
|
if (attr) {
|
||||||
s_editMode = 0;
|
s_editMode = 0;
|
||||||
s_currIdx = index;
|
s_currIdx = index;
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ void processSportUpdatePacket(uint8_t *packet)
|
|||||||
|
|
||||||
void processSportPacket(uint8_t *packet)
|
void processSportPacket(uint8_t *packet)
|
||||||
{
|
{
|
||||||
uint8_t dataId = packet[0];
|
uint8_t dataId = (packet[0] & 0x1F) + 1;
|
||||||
uint8_t prim = packet[1];
|
uint8_t prim = packet[1];
|
||||||
uint16_t appId = *((uint16_t *)(packet+2));
|
uint16_t appId = *((uint16_t *)(packet+2));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user