Update main.c restore if not sim payload fail

master-r
Alan Johnston 1 week ago committed by GitHub
parent b36cf894b7
commit 204d4ea7c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -964,7 +964,7 @@ int main(int argc, char * argv[]) {
printf("Simulated MPU Failure!\n"); printf("Simulated MPU Failure!\n");
} }
if ((failureMode == FAIL_BME) || (failureMode == FAIL_MPU) || (sim_mode && (failureMode == FAIL_PAYLOAD))) // recreaate sensor_payload string if ((failureMode == FAIL_BME) || (failureMode == FAIL_MPU) || (sim_mode && (failureMode != FAIL_PAYLOAD))) // recreaate sensor_payload string
{ {
sensor_payload[0] = '\0'; sensor_payload[0] = '\0';
strcpy(sensor_string[0], "OK"); strcpy(sensor_string[0], "OK");

Loading…
Cancel
Save

Powered by TurnKey Linux.