rusefi/firmware/controllers/system/efi_output.cpp

23 lines
313 B
C++
Raw Normal View History

2022-09-07 16:36:16 -07:00
/*
* @file efi_output.cpp
*
*/
#include "pch.h"
2022-09-07 16:36:16 -07:00
#include "efi_output.h"
bool SwitchedState::update(bool newState) {
2023-08-20 14:08:33 -07:00
if (newState != *state) {
*state = newState ? 1 : 0;
2023-08-20 14:08:33 -07:00
counter++;
return true;
2023-08-20 14:08:33 -07:00
}
return false;
}
uint16_t SwitchedState::getCounter() {
return counter;
2023-08-20 14:08:33 -07:00
}