In flutter_gpiod version 0.6.0, the following code seems to trigger on both edges:
gpioLine.requestInput(
consumer: consumer,
triggers: const {SignalEdge.falling},
bias: gpioBias);
gpioLine.onEvent.listen((_) => onEvent());
A quick analysis by Claude blames the == comparison in gpiod.dart:552-556.
My current workaround is to add a .where((event) => event.edge == SignalEdge.falling) before the .listen for anyone experiencing the same issue.
In flutter_gpiod version 0.6.0, the following code seems to trigger on both edges:
A quick analysis by Claude blames the
==comparison in gpiod.dart:552-556.My current workaround is to add a
.where((event) => event.edge == SignalEdge.falling)before the.listenfor anyone experiencing the same issue.