Instance numbers synced with FrSky servo channel changer, and displayed on telemetry page to ease choosing a new ID

This commit is contained in:
Andre Bernet
2015-03-20 17:52:49 +04:00
parent 21f8eb7e9d
commit 81a14c1732
2 changed files with 3 additions and 1 deletions
@@ -478,6 +478,8 @@ void menuModelTelemetry(uint8_t event)
else {
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) {
s_editMode = 0;
s_currIdx = index;
+1 -1
View File
@@ -167,7 +167,7 @@ void processSportUpdatePacket(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];
uint16_t appId = *((uint16_t *)(packet+2));