From c2d7cfa1c9b50b627572ca7afc1c1ada15533a0b Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 9 Aug 2025 10:22:19 -0400 Subject: [PATCH] Update main.c do sensor_string copy --- main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 448019ad..cec5bf29 100644 --- a/main.c +++ b/main.c @@ -709,13 +709,13 @@ int main(int argc, char * argv[]) { if (failureMode == FAIL_BME) { sensor[TEMP] = 0.0; - strcpy(sensor[TEMP], "0.0"); + strcpy(sensor_string[TEMP], "0.0"); sensor[PRES] = 0.0; - strcpy(sensor[PRES], "0.0"); + strcpy(sensor_string[PRES], "0.0"); sensor[HUMI] = 0.0; - strcpy(sensor[HUMI], "0.0"); + strcpy(sensor_string[HUMI], "0.0"); sensor[ALT] = 0.0; - strcpy(sensor[ALT], "0.0"); + strcpy(sensor_string[ALT], "0.0"); printf("Simulated BME Failure!\n"); }