Fix all compiler warnings and migrate off depreciated ADC and I2C libraries.
---------
Co-authored-by: Erik Olof Gunnar Andersson <eandersson@users.noreply.github.com>
* Code clean resulting from looking into #218
* Fixed asic count
Set canary value for invalid device's asic_count
---------
Co-authored-by: tommy <tommy@tommywatson.com>