rusefillc 2022-04-19 14:49:57 -04:00
parent a901fa1e5a
commit 13ccfefb7e
2 changed files with 7 additions and 2 deletions

View File

@ -2,7 +2,7 @@
struct_no_prefix trigger_central_s
int[HW_EVENT_TYPES iterate] hwEventCounters;Counter of hardware events since ECU start
int[HW_EVENT_TYPES iterate] hwEventCounters;Hardware events since boot
int vvtCamCounter

View File

@ -24,6 +24,8 @@ import static com.rusefi.output.JavaSensorsConsumer.quote;
* 12/19/18
*/
public class ReaderState {
// https://github.com/rusefi/web_backend/issues/166
private static final int MSQ_LENGTH_LIMIT = 34;
// used to update other files
public List<String> inputFiles = new ArrayList<>();
@ -310,7 +312,10 @@ public class ReaderState {
@NotNull
private static String getCommentWithIndex(ConfigField cf, int i) {
String unquoted = unquote(cf.getCommentOrName());
return quote(unquoted + " " + i);
String string = unquoted + " " + i;
if (string.length() > MSQ_LENGTH_LIMIT)
throw new IllegalStateException("[" + string + "] is too long for rusEFI online");
return quote(string);
}
public String getHeader() {