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);
|
||||
// and send to ECU (without burn!)
|
||||
writeScriptToEcu();
|
||||
if (newLua.length() >= Fields.LUA_SCRIPT_SIZE) {
|
||||
setText(newLua.length() + " bytes would not fit sorry current limit " + Fields.LUA_SCRIPT_SIZE);
|
||||
} else {
|
||||
setText(newLua);
|
||||
// and send to ECU (without burn!)
|
||||
writeScriptToEcu();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
System.err.println("Error " + e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue