only:isHwQcMode API

This commit is contained in:
rusefillc 2024-09-19 12:56:31 -04:00
parent df87937e30
commit 31c91dff41
2 changed files with 9 additions and 2 deletions

View File

@ -21,7 +21,14 @@ extern PinRepository pinRepository;
* quite different from bench testing user functionality: QC direct should never be engaged on a real vehicle
* Once QC direct control mode is activated the only way out is to reboot the unit!
*/
// that one could be set by rusEFI console
bool qcDirectPinControlMode = false;
// todo: how is this flag different from the one above? shall we merge?
/*board public API*/bool withHwQcActivity = false;
bool isHwQcMode() {
return withHwQcActivity || qcDirectPinControlMode;
}
#if EFI_CAN_SUPPORT
@ -244,8 +251,6 @@ static void resetPinStats(bench_mode_e benchModePinIdx) {
#endif // EFI_SIMULATOR
}
/*board public API*/bool withHwQcActivity = false;
void processCanQcBenchTest(const CANRxFrame& frame) {
if (CAN_EID(frame) != (int)bench_test_packet_ids_e::IO_CONTROL) {
return;

View File

@ -13,6 +13,8 @@ void printSpiState();
void printConfiguration();
void scheduleStopEngine();
bool isHwQcMode();
void setEngineTypeAndSave(int value);
void setEngineType(int value, bool isWriteToFlash = true);
void readPin(const char *pinName);