added prints in setup

pull/294/head
Alan Johnston 2 years ago committed by GitHub
parent 199a443bd3
commit 65bae01b1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,6 +18,8 @@ float magRawAbs = 0;
// put your setup code here // put your setup code here
void payload_setup() { void payload_setup() {
Serial.println("Starting Si1145 sensor!");
if (! uv.begin()) { if (! uv.begin()) {
Serial.println("Si1145 sensor fault"); Serial.println("Si1145 sensor fault");
uvPresent = 0; uvPresent = 0;
@ -25,6 +27,8 @@ void payload_setup() {
uvPresent = 1; uvPresent = 1;
} }
Serial.println("Starting LIS3MDL sensor!");
if (! lis3mdl.begin_I2C()) { if (! lis3mdl.begin_I2C()) {
Serial.println("LIS3MDL sensor fault"); Serial.println("LIS3MDL sensor fault");
magPresent = 0; magPresent = 0;

Loading…
Cancel
Save

Powered by TurnKey Linux.