Remove redundant check (always trigger the fsensor isr)
Since fsensor_st_block_chunk is already called on fsensor_chunk_size boundaries, there's no need to check a second time.
This commit is contained in:
parent
1eddc40ed4
commit
3af35844e1
|
|
@ -563,12 +563,10 @@ void fsensor_st_block_chunk(int cnt)
|
||||||
{
|
{
|
||||||
if (!fsensor_enabled) return;
|
if (!fsensor_enabled) return;
|
||||||
fsensor_st_cnt += cnt;
|
fsensor_st_cnt += cnt;
|
||||||
if (abs(fsensor_st_cnt) >= fsensor_chunk_len)
|
|
||||||
{
|
// !!! bit toggling (PINxn <- 1) (for PinChangeInterrupt) does not work for some MCU pins
|
||||||
// !!! bit toggling (PINxn <- 1) (for PinChangeInterrupt) does not work for some MCU pins
|
if (PIN_GET(FSENSOR_INT_PIN)) {PIN_VAL(FSENSOR_INT_PIN, LOW);}
|
||||||
if (PIN_GET(FSENSOR_INT_PIN)) {PIN_VAL(FSENSOR_INT_PIN, LOW);}
|
else {PIN_VAL(FSENSOR_INT_PIN, HIGH);}
|
||||||
else {PIN_VAL(FSENSOR_INT_PIN, HIGH);}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif //PAT9125
|
#endif //PAT9125
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue