remove exclusivePinControlMode
This commit is contained in:
parent
1c2330b938
commit
bfd16c47ae
|
@ -98,7 +98,6 @@ static void runBench(OutputPin *output, float onTimeMs, float offTimeMs, int cou
|
||||||
|
|
||||||
isRunningBench = true;
|
isRunningBench = true;
|
||||||
outputOnTheBenchTest = output;
|
outputOnTheBenchTest = output;
|
||||||
output->exclusivePinControlMode = true;
|
|
||||||
|
|
||||||
for (int i = 0; isRunningBench && i < count; i++) {
|
for (int i = 0; isRunningBench && i < count; i++) {
|
||||||
engine->outputChannels.testBenchIter = i;
|
engine->outputChannels.testBenchIter = i;
|
||||||
|
@ -120,7 +119,6 @@ static void runBench(OutputPin *output, float onTimeMs, float offTimeMs, int cou
|
||||||
efiPrintf("Done!");
|
efiPrintf("Done!");
|
||||||
outputOnTheBenchTest = nullptr;
|
outputOnTheBenchTest = nullptr;
|
||||||
isRunningBench = false;
|
isRunningBench = false;
|
||||||
output->exclusivePinControlMode = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo: migrate to smarter getOutputOnTheBenchTest() approach?
|
// todo: migrate to smarter getOutputOnTheBenchTest() approach?
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
|
#include "bench_test.h"
|
||||||
#include "engine_sniffer.h"
|
#include "engine_sniffer.h"
|
||||||
|
|
||||||
#include "drivers/gpio/gpio_ext.h"
|
#include "drivers/gpio/gpio_ext.h"
|
||||||
|
@ -544,7 +545,7 @@ void OutputPin::resetToggleStats() {
|
||||||
extern bool qcDirectPinControlMode;
|
extern bool qcDirectPinControlMode;
|
||||||
|
|
||||||
void OutputPin::setValue(const char *msg, int logicValue, bool isForce) {
|
void OutputPin::setValue(const char *msg, int logicValue, bool isForce) {
|
||||||
if ((qcDirectPinControlMode || this->exclusivePinControlMode) && !isForce) {
|
if ((qcDirectPinControlMode || getOutputOnTheBenchTest() == this) && !isForce) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,8 +78,6 @@ public:
|
||||||
|
|
||||||
brain_pin_e brainPin = Gpio::Unassigned;
|
brain_pin_e brainPin = Gpio::Unassigned;
|
||||||
|
|
||||||
bool exclusivePinControlMode = false;
|
|
||||||
|
|
||||||
#if (EFI_GPIO_HARDWARE && (BOARD_EXT_GPIOCHIPS > 0))
|
#if (EFI_GPIO_HARDWARE && (BOARD_EXT_GPIOCHIPS > 0))
|
||||||
/* used for external pins */
|
/* used for external pins */
|
||||||
bool ext = false;
|
bool ext = false;
|
||||||
|
|
Loading…
Reference in New Issue