mmu: FINDA disabled by damaged/disconnected PAT9125 hotfix

This commit is contained in:
PavelSindler 2018-11-21 19:27:55 +01:00
parent 18eb9ad69e
commit 74a7341005
1 changed files with 3 additions and 0 deletions

View File

@ -200,6 +200,7 @@ void pciSetup(byte pin)
void fsensor_autoload_check_start(void)
{
// puts_P(_N("fsensor_autoload_check_start\n"));
if (mmu_enabled) return;
if (!fsensor_enabled) return;
if (!fsensor_autoload_enabled) return;
if (fsensor_watch_autoload) return;
@ -238,6 +239,7 @@ void fsensor_autoload_check_stop(void)
bool fsensor_check_autoload(void)
{
if (mmu_enabled) return false;
if (!fsensor_enabled) return false;
if (!fsensor_autoload_enabled) return false;
if (!fsensor_watch_autoload)
@ -362,6 +364,7 @@ bool fsensor_oq_result(void)
ISR(FSENSOR_INT_PIN_VECT)
{
if (mmu_enabled) return;
if (!((fsensor_int_pin_old ^ FSENSOR_INT_PIN_PIN_REG) & FSENSOR_INT_PIN_MASK)) return;
fsensor_int_pin_old = FSENSOR_INT_PIN_PIN_REG;
static bool _lock = false;