minor housekeeping
This commit is contained in:
parent
889c374beb
commit
86b2e26506
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
void turnInjectionPinHigh(InjectionEvent *event) {
|
void turnInjectionPinHigh(InjectionEvent *event) {
|
||||||
efitick_t nowNt = getTimeNowNt();
|
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];
|
InjectorOutputPin *output = event->outputs[i];
|
||||||
|
|
||||||
if (output) {
|
if (output) {
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
|
|
||||||
#define MAX_WIRES_COUNT 2
|
#define MAX_WIRES_COUNT 2
|
||||||
|
|
||||||
|
|
||||||
class InjectionEvent {
|
class InjectionEvent {
|
||||||
public:
|
public:
|
||||||
InjectionEvent();
|
InjectionEvent();
|
||||||
|
|
|
@ -57,7 +57,7 @@ void turnInjectionPinLow(InjectionEvent *event) {
|
||||||
efitick_t nowNt = getTimeNowNt();
|
efitick_t nowNt = getTimeNowNt();
|
||||||
|
|
||||||
event->isScheduled = false;
|
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];
|
InjectorOutputPin *output = event->outputs[i];
|
||||||
if (output) {
|
if (output) {
|
||||||
output->close(nowNt);
|
output->close(nowNt);
|
||||||
|
|
Loading…
Reference in New Issue