From fed7b22463883b30ce69c370fc6ffe69ac4b9e99 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 21 Jan 2026 14:06:06 -0500 Subject: [PATCH] add &itoa --- main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index b7ac9352..fb577b41 100644 --- a/main.c +++ b/main.c @@ -871,12 +871,12 @@ tempP = rnd_float(-25, -15); // simulated payload parameters sensor[PRES] = 0; strcpy(sensor_string[PRES], "0.0"); sensor[ALT] = altSP; - strcpy(sensor_string[ALT], itoa(altSP)); + strcpy(sensor_string[ALT], &itoa(altSP)); print("Alt: %s\n", sensor_string[ALT]); sensor[HUMI] = 0; strcpy(sensor_string[HUMI], "0.0"); - sensor[TEMP] = itoa(tempP + 80 * (1 - eclipse)); - strcpy(sensor_string[TEMP], itoa(tempP + 80 * (1 - eclipse))); + sensor[TEMP] = &itoa(tempP + 80 * (1 - eclipse)); + strcpy(sensor_string[TEMP], &itoa(tempP + 80 * (1 - eclipse))); print("Temp: %s\n", sensor_string[TEMP]); } else { sensor[PRES] = presP; @@ -886,8 +886,8 @@ tempP = rnd_float(-25, -15); // simulated payload parameters strcpy(sensor_string[ALT], atoi(altGP)); sensor[HUMI] = humiP; strcpy(sensor_string[HUMI], atoi(humiP)); - sensor[TEMP] = itoa(tempP + 80 * (1 - eclipse)); - strcpy(sensor_string[TEMP], itoa(tempP + 80 * (1 - eclipse))); + sensor[TEMP] = &itoa(tempP + 80 * (1 - eclipse)); + strcpy(sensor_string[TEMP], &itoa(tempP + 80 * (1 - eclipse))); print("Temp: %s\n", sensor_string[TEMP]); } char sensor_number[20];