* switched selftest fail to be non fatal
* switched to BOOT longpress to reboot after selftest
* lots and lots of error handling cleanup. <slippery slope>
* move around the DS4432U_Init() function call
* temp sensor fixes
* fix emc2101 external temp sign reading
* reset self test file
* Make the emc2101 changes specific to BM1370
---------
Co-authored-by: Benjamin Wilson <admin@opensourceminer.com>
* add common vars to control rx warning behavoir
* rename vars, reduce rx timout value, add warning when 20s of consecutive rx timeouts occour
* rename device to asic
* better naming of warning condition variable
* move counter variables into the ASIC source files
* move constants to defines and counters to local vars
* fix stray semicolon
Co-authored-by: Skot <skot@bitnet.cx>
* move ADC_init() before start_http_server() because the UI reads the ADC
* split SYSTEM_init() into separate functions. cleaned up nvs init.
* fix my dumb INA260_init() memory leak
* SYSTEM_init_peripherals() cleanup
Fix all compiler warnings and migrate off depreciated ADC and I2C libraries.
---------
Co-authored-by: Erik Olof Gunnar Andersson <eandersson@users.noreply.github.com>
* make set version mask a function call
* update name
* update init fuc to support version mask setting
* update parameter spec for bm1397
* parametrize set version rolling and update init func for BM136X +
* add default stratum mask
* update all bmchips with a new set_version_mask ASIC function which can be called in main
* update init func prototype params
* update self test to remove extra vmask call in init
* fix compiler errors
* fix compiler errors in main
* add version_mask_given bool to tell the next job to set a new version mask to the chip when a smg comes in