Fix MK25 build
This commit is contained in:
parent
d628525a94
commit
ba8332cd3e
|
|
@ -404,6 +404,7 @@ bool PAT9125_sensor::update() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef FSENSOR_PROBING
|
||||||
bool PAT9125_sensor::probeOtherType() {
|
bool PAT9125_sensor::probeOtherType() {
|
||||||
SET_INPUT(IR_SENSOR_PIN); // input mode
|
SET_INPUT(IR_SENSOR_PIN); // input mode
|
||||||
WRITE(IR_SENSOR_PIN, 1); // pullup
|
WRITE(IR_SENSOR_PIN, 1); // pullup
|
||||||
|
|
@ -413,6 +414,7 @@ bool PAT9125_sensor::probeOtherType() {
|
||||||
WRITE(IR_SENSOR_PIN, 0); // no pullup
|
WRITE(IR_SENSOR_PIN, 0); // no pullup
|
||||||
return fsensorDetected;
|
return fsensorDetected;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void PAT9125_sensor::setJamDetectionEnabled(bool state, bool updateEEPROM) {
|
void PAT9125_sensor::setJamDetectionEnabled(bool state, bool updateEEPROM) {
|
||||||
jamDetection = state;
|
jamDetection = state;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue