minor housekeeping

This commit is contained in:
Matthew Kennedy 2024-01-07 02:10:56 -05:00 committed by rusefillc
parent 889c374beb
commit 86b2e26506
3 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,7 @@
void turnInjectionPinHigh(InjectionEvent *event) {
efitick_t nowNt = getTimeNowNt();
for (int i = 0;i < MAX_WIRES_COUNT;i++) {
for (size_t i = 0; i < efi::size(event->outputs); i++) {
InjectorOutputPin *output = event->outputs[i];
if (output) {

View File

@ -13,7 +13,6 @@
#define MAX_WIRES_COUNT 2
class InjectionEvent {
public:
InjectionEvent();

View File

@ -57,7 +57,7 @@ void turnInjectionPinLow(InjectionEvent *event) {
efitick_t nowNt = getTimeNowNt();
event->isScheduled = false;
for (int i = 0;i<MAX_WIRES_COUNT;i++) {
for (size_t i = 0; i < efi::size(event->outputs); i++) {
InjectorOutputPin *output = event->outputs[i];
if (output) {
output->close(nowNt);