better support for pretty noisy trigger (?)
This commit is contained in:
parent
ef1fea045d
commit
adae026788
|
@ -810,6 +810,6 @@ int getRusEfiVersion(void) {
|
|||
if (initBootloader() != 0)
|
||||
return 123;
|
||||
#endif /* EFI_BOOTLOADER_INCLUDE_CODE */
|
||||
return 20190623;
|
||||
return 20190625;
|
||||
}
|
||||
#endif /* EFI_UNIT_TEST */
|
||||
|
|
|
@ -509,6 +509,10 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no
|
|||
|
||||
for (int i = 0;i<GAP_TRACKING_LENGTH;i++) {
|
||||
float gap = 1.0 * toothDurations[i] / toothDurations[i + 1];
|
||||
if (cisnan(gap)) {
|
||||
scheduleMsg(logger, "%d NaN cur gap, you have noise issues?",
|
||||
i);
|
||||
} else {
|
||||
scheduleMsg(logger, "%d %d: cur %.2f expected from %.2f to %.2f error=%d",
|
||||
getTimeNowSeconds(),
|
||||
i,
|
||||
|
@ -517,6 +521,7 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no
|
|||
TRIGGER_SHAPE(syncronizationRatioTo[i]),
|
||||
someSortOfTriggerError);
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
float gap = 1.0 * toothDurations[0] / toothDurations[1];
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.text.SimpleDateFormat;
|
|||
import java.util.Date;
|
||||
|
||||
public class MessagesView {
|
||||
private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH_mm");
|
||||
private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH_mm:ss.SSS");
|
||||
private static final int MAX_SIZE = 50000;
|
||||
private final Style bold;
|
||||
private final Style italic;
|
||||
|
|
Loading…
Reference in New Issue