Update main.c pi_sensors returns 0 if nothing present

pi-sensors-auto
Alan Johnston 4 weeks ago committed by GitHub
parent 06c979f8af
commit 3eef68fc6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2961,5 +2961,8 @@ int pi_sensors(char *buffer)
fprintf(stderr, "pi_sensors string: %s\n", buffer);
return (1);
if (strcmp(buffer, "OK BME280 0.0 0.0 0.0 0.0 MPU6050 0.0 0.0 0.0 0.0 0.0 0.0 GPS 0.0 0.0 0.0 TMP 0.0 YPR 0.0 0.0 0.0") == 0)
return (0);
else
return (1);
}

Loading…
Cancel
Save

Powered by TurnKey Linux.