defer callback for hw encoder to ada callback

This commit is contained in:
hathach committed 2017-09-15 17:36:42 +07:00
1 parent 509d55f9a5
commit 9b71709c13
2 files changed
+2 -1

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 ) _cb(step);
if ( step ) ada_callback(NULL, _cb, step);
}
}
}