Adacallback support fromISR call

- change Prioprity for loop() to LOW
- defer interrupt for both hw and sw encoder to ada callback
This commit is contained in:
hathach committed 2017-09-15 17:56:24 +07:00
1 parent 9b71709c13
commit b2e49f2fc9
8 files changed
+26 -12

No files matched your search

+1 -1
View File
@@ -198,7 +198,7 @@ void HwRotaryEncoder::_irq_handler(void)
if ( _cb )
{
int32_t step = read();
if ( step ) ada_callback(NULL, _cb, step);
if ( step ) ada_callback_fromISR(NULL, _cb, step);
}
}
}