mirror of https://github.com/rusefi/rusefi.git
making Lua overflow more obvious
This commit is contained in:
parent
b2fce5aa1d
commit
978c537886
|
@ -180,9 +180,13 @@ public class LuaScriptPanel {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
setText(newLua);
|
if (newLua.length() >= Fields.LUA_SCRIPT_SIZE) {
|
||||||
// and send to ECU (without burn!)
|
setText(newLua.length() + " bytes would not fit sorry current limit " + Fields.LUA_SCRIPT_SIZE);
|
||||||
writeScriptToEcu();
|
} else {
|
||||||
|
setText(newLua);
|
||||||
|
// and send to ECU (without burn!)
|
||||||
|
writeScriptToEcu();
|
||||||
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
System.err.println("Error " + e);
|
System.err.println("Error " + e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue