Adjust temperature calculation in main.c

master-fsk-cw
Alan Johnston 2 weeks ago committed by GitHub
parent afbd38da4c
commit 2fae6f1d58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -890,7 +890,7 @@ int main(int argc, char * argv[]) {
sensor[HUMI] = humiP + rnd_float(-1, 1);
sprintf(str_tmp, "%3.0f", humiP);
strcpy(sensor_string[HUMI], str_tmp);
sensor[TEMP] = tempP - 80 * (1 - eclipse) + rnd_float(-0.3, 0.3);
sensor[TEMP] = tempP - 70 - 10 * (1 - eclipse) + rnd_float(-0.3, 0.3);
sprintf(str_tmp, "%3.0f",sensor[TEMP]);
strcpy(sensor_string[TEMP], str_tmp);
printf("Temp: %s\n", sensor_string[TEMP]);

Loading…
Cancel
Save

Powered by TurnKey Linux.