firmware builds?

This commit is contained in:
Matthew Kennedy 2024-04-27 15:19:12 -07:00
parent de0e7e71a9
commit e348722542
2 changed files with 4 additions and 4 deletions

View File

@ -290,7 +290,7 @@ void LogTriggerTopDeadCenter(efitick_t timestamp) {
currentTdc = true; currentTdc = true;
SetNextCompositeEntry(timestamp); SetNextCompositeEntry(timestamp);
currentTdc = false; currentTdc = false;
SetNextCompositeEntry(timestamp + 10); SetNextCompositeEntry(timestamp + efidur_t{10});
} }
void LogTriggerCoilState(efitick_t timestamp, bool state) { void LogTriggerCoilState(efitick_t timestamp, bool state) {

View File

@ -104,7 +104,7 @@ bool WaveChart::isStartedTooLongAgo() const {
* *
*/ */
efidur_t chartDurationNt = getTimeNowNt() - startTimeNt; efidur_t chartDurationNt = getTimeNowNt() - startTimeNt;
return startTimeNt != 0 && NT2US(chartDurationNt) > engineConfiguration->engineChartSize * 1000000 / 20; return startTimeNt.count() != 0 && NT2US(chartDurationNt) > engineConfiguration->engineChartSize * 1000000 / 20;
} }
bool WaveChart::isFull() const { bool WaveChart::isFull() const {
@ -205,8 +205,8 @@ void WaveChart::addEvent3(const char *name, const char * msg) {
* *
* at least that's 32 bit division now * at least that's 32 bit division now
*/ */
uint32_t diffNt = nowNt - startTimeNt; uint32_t diffUs = NT2US(nowNt - startTimeNt);
uint32_t time100 = NT2US(diffNt / ENGINE_SNIFFER_UNIT_US); uint32_t time100 = diffUs / ENGINE_SNIFFER_UNIT_US;
if (logging.remainingSize() > 35) { if (logging.remainingSize() > 35) {
/** /**