digital_input: check for valid callback not name! (#4575)
This commit is contained in:
parent
a269287b70
commit
31180e179b
|
@ -184,7 +184,7 @@ CH_IRQ_HANDLER(STM32_I2C1_EVENT_HANDLER) {
|
|||
if (timestamp != 0) {
|
||||
auto& channel = channels[entry.Channel];
|
||||
|
||||
if (channel.Name) {
|
||||
if (channel.Callback) {
|
||||
channel.Callback(channel.CallbackData, timestamp);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue