1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-20 06:45:10 +03:00

Small fix in cli: main stack size reported wrong

This commit is contained in:
Damjan Adamic 2015-10-28 18:10:58 +01:00
parent fbc2def259
commit 3dc7e66ba7

View file

@ -174,8 +174,8 @@ int cliStackInfo(const char ** argv)
available = cliStack.available();
break;
case MAIN_TASK_INDEX:
total = stackAvailable();
available = stackSize();
total = stackSize() * 4;
available = stackAvailable();
break;
default:
break;
@ -333,8 +333,8 @@ void cliTask(void * pdata)
else if (c == 127) {
// backspace
if (pos) {
line[--pos] = '\0';
serialPutc(c);
line[--pos] = '\0';
serialPutc(c);
}
}
else if (c == '\r' || c == '\n') {