endail / hx711

Raspberry Pi HX711 C++ Library
MIT License
19 stars 11 forks source link

Strict timing is not feasible for user space code #79

Open endail opened 1 year ago

endail commented 1 year ago

https://github.com/endail/hx711/blob/42d6305ab0aa8ad03e066a67a64228dc67bef4be/src/HX711.cpp#L104

The conditionals to check for these flags waste precious CPU cycles in what is an ultimately critical section. Perhaps a preprocessor flag should be used to gate them instead?