Closed endail closed 1 year ago
https://github.com/endail/hx711-pico-c/blob/7a390087c2548b2d58f76aa7e896b03760bc812b/include/hx711.h#L269-L281
assert is removed in release causing hx pointer to go unused. Perhaps a macro instead?
assert
hx
Release code now compiles.
hx711__assert_hx_initd function replaced with CHECK_HX711_INITD macro which is only enabled in DEBUG builds.
hx711__assert_hx_initd
CHECK_HX711_INITD
DEBUG
https://github.com/endail/hx711-pico-c/blob/7a390087c2548b2d58f76aa7e896b03760bc812b/include/hx711.h#L269-L281
assert
is removed in release causinghx
pointer to go unused. Perhaps a macro instead?