First SOMO-14D tests

This commit is contained in:
bsongis
2012-06-06 20:14:40 +00:00
parent b0f0bac3e2
commit 1570814b45
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2215,7 +2215,7 @@ void menuProcFunctionSwitches(uint8_t event)
} }
else if (sd->func == FUNC_PLAY_VALUE) { else if (sd->func == FUNC_PLAY_VALUE) {
val_max = NUM_XCHNPLAY; val_max = NUM_XCHNPLAY;
putsChnRaw(17*FW, y, val_displayed, attr); putsChnRaw(17*FW, y, val_displayed+1, attr);
} }
#endif #endif
else if (sd->func == FUNC_RESET) { else if (sd->func == FUNC_RESET) {
+1 -1
View File
@@ -1523,7 +1523,7 @@ void playValue(uint8_t idx)
default: default:
{ {
uint8_t unit; uint8_t unit;
if (idx <= NUM_XCHNRAW+TELEM_GPSALT-1) if (idx >= NUM_XCHNRAW && idx <= NUM_XCHNRAW+TELEM_GPSALT-1)
unit = idx - NUM_XCHNRAW - 6; unit = idx - NUM_XCHNRAW - 6;
else if (idx >= NUM_XCHNRAW+TELEM_MAX_T1-1 && idx <= NUM_XCHNRAW+TELEM_MAX_DIST-1) else if (idx >= NUM_XCHNRAW+TELEM_MAX_T1-1 && idx <= NUM_XCHNRAW+TELEM_MAX_DIST-1)
unit = idx - NUM_XCHNRAW - 22; unit = idx - NUM_XCHNRAW - 22;