Issue 31 solved

This commit is contained in:
bsongis
2012-05-24 07:38:40 +00:00
parent 0f9036f00d
commit 521f7fc2f4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2192,7 +2192,7 @@ void menuProcFunctionSwitches(uint8_t event)
}
else if (sd->func <= FUNC_SAFETY_CH16) {
int8_t value = ((int8_t)sd->param >> 1);
lcd_outdezAtt(18*FW, y, value * 2, attr);
lcd_outdezAtt(18*FW, y, limit((int8_t)-125, (int8_t)(value * 2), (int8_t)125), attr);
if (active) sd->param = (sd->param & 1) + (checkIncDecModel(event, value, -63, 63) << 1);
break;
}
+1 -1
View File
@@ -1470,7 +1470,7 @@ void evalFunctions()
}
if (getSwitch(swtch, 0)) {
if (sd->func < FUNC_TRAINER && (sd->param & 1)) {
safetyCh[sd->func] = ((int8_t)sd->param >> 1) * 2;
safetyCh[sd->func] = limit((int8_t)-125, (int8_t)(((int8_t)sd->param >> 1) * 2), (int8_t)125);
}
if (~active_functions & function_mask) {