arduino-OBD2
arduino-OBD2 copied to clipboard
Added way to check if OBD is ready for another request
Great library and super useful.
I have a modified version I use to ensure the lib never blocks with delays. But I think this fix is good to have upstream to allow a simple check before entering a read. It does not do away with delays when reading large packets but is a step in the right direction. (I use a modified pidRead that returns a constant until it has all the responses to prevent delay, but that's for a different time)
This also allows for some refactoring to lessen code reuse by calling this method instead of duplicating the check everywhere.