[all] PPM value in us in the title bar of LIMITS menu when using PPM_UNIT=US (thanks François for the bug report!)

This commit is contained in:
bsongis
2012-12-19 17:37:51 +00:00
parent fada51f5b3
commit 5f19f78509
+1 -2
View File
@@ -2311,7 +2311,7 @@ void menuModelLimits(uint8_t event)
uint8_t sub = m_posVert - 1;
if (sub < NUM_CHNOUT) {
#if defined(PPM_CENTER_ADJUSTABLE)
#if defined(PPM_CENTER_ADJUSTABLE) || defined(PPM_UNIT_US)
lcd_outdezAtt(13*FW, 0, PPM_CH_CENTER(sub)+g_chans512[sub]/2, 0);
lcd_puts(13*FW, 0, STR_US);
#else
@@ -2349,7 +2349,6 @@ void menuModelLimits(uint8_t event)
#if defined(LCD212) || !defined(PPM_CENTER_ADJUSTABLE)
int16_t v = (ld->revert) ? -ld->offset : ld->offset;
char swVal = '-'; // '-', '<', '>'
if((g_chans512[k] - v) > 50) swVal = (ld->revert ? 127 : 126); // Switch to raw inputs? - remove trim!
if((g_chans512[k] - v) < -50) swVal = (ld->revert ? 126 : 127);