Closed dmadison closed 7 years ago
The code is starting to get a bit unwieldy with everything in series, so I split up the code into separate functions:
This should make everything much more readable and easier to maintain. Performance impact should be negligible.
Additional changes include:
dataSet()
SerialTimeout
loop()
The code is starting to get a bit unwieldy with everything in series, so I split up the code into separate functions:
This should make everything much more readable and easier to maintain. Performance impact should be negligible.
Additional changes include:
dataSet()
.SerialTimeout
variable to use seconds, which are more intuitive to set.SerialTimeout
checking efficiency, at the cost of limiting it to 1 second increments (ack period).loop()
. Functions should be inlined regardless.