Closed Skill3t closed 1 year ago
Thanks for the bug report -- it was an oversight in the new gpio-cdev v2 ABI implementation. It's been fixed in v2.4.1 now to report realtime timestamps in line events. Let me know if you run into any other issues.
Many thanks for the quick feedback. I just tested the new version. Works as expected. The solution then looks like this (for all those who also want to convert the time stamp)
datetime.fromtimestamp(event.timestamp / 1000000000)
Hey if i run the following script on Arm Cortex-A7 in a docker Container
the output is:
The timestamp of the event doesn't make any sense to me and I don't know how to convert it. According to the documentation it should be a unix timestamp in nanoseconds. So it should be something like this datetime.fromtimestamp(event.timestamp / 1000000) unfortunately it is not.
Do you have a hint for me? Thanks in advance