defer callback for hw encoder to ada callback
This commit is contained in:
1 parent
509d55f9a5
commit
9b71709c13
2 files changed
+2
-1
No files matched your search
@@ -8,6 +8,7 @@
|
||||
- Added systemOff() to enter hibernate mode
|
||||
- Correct waitForEvent() function with SoftDevice enabled and disabled.
|
||||
- Added RotaryEncoder support for both Hardware and Software Encoder.
|
||||
- Ada Callback task is started along with loop task, used as worker thread to defer interrupt callback.
|
||||
|
||||
## 0.7.0
|
||||
|
||||
|
||||
@@ -198,7 +198,7 @@ void HwRotaryEncoder::_irq_handler(void)
|
||||
if ( _cb )
|
||||
{
|
||||
int32_t step = read();
|
||||
if ( step ) _cb(step);
|
||||
if ( step ) ada_callback(NULL, _cb, step);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user