refactor hmc5883: use driver base class

Removes the calibration on startup, as these values were overwritten by
the system calibration values anyway.
So the only difference is that if all calibration scales were equal to 1,
the driver startup would have failed.
This commit is contained in:
Beat Küng
2020-03-13 09:05:36 +01:00
committed by Daniel Agar
parent 8f3ba81c4a
commit 8ebde51648
23 changed files with 167 additions and 460 deletions
+2 -2
View File
@@ -8,13 +8,13 @@ rgbled start -I
adc start
# External I2C bus
hmc5883 -C -T -X start
hmc5883 -T -X start
lis3mdl -X start
ist8310 -X start
qmc5883 -X start
# Internal I2C bus
hmc5883 -C -T -I -R 4 start
hmc5883 -T -I -R 4 start
# Internal SPI bus ICM-20608-G
mpu6000 -s -T 20608 start