Update main.c add back sensor_payload clear

pull/392/head
Alan Johnston 4 months ago committed by GitHub
parent c1e8383441
commit 755edd2fa8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -817,6 +817,7 @@ int main(int argc, char * argv[]) {
if ((failureMode == FAIL_BME) || (failureMode == FAIL_MPU) || sim_mode) // recreaate sensor_payload string if ((failureMode == FAIL_BME) || (failureMode == FAIL_MPU) || sim_mode) // recreaate sensor_payload string
{ {
sensor_payload[0] = "\0";
strcpy(sensor_string[0], "OK"); strcpy(sensor_string[0], "OK");
strcpy(sensor_string[1], "BME280"); strcpy(sensor_string[1], "BME280");
strcpy(sensor_string[6], "MPU6050"); strcpy(sensor_string[6], "MPU6050");

Loading…
Cancel
Save

Powered by TurnKey Linux.