From c3074bcb6a75aaac12398f08541b5e16160e8cd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Thu, 13 May 2021 16:12:27 +0200 Subject: [PATCH] Refactor code --- firmware/temp-adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/temp-adc.c b/firmware/temp-adc.c index 92ce4e4..a488a55 100644 --- a/firmware/temp-adc.c +++ b/firmware/temp-adc.c @@ -55,7 +55,7 @@ int32_t temperature_adc_get_temp(void) temp = (get_temp_sensor_cal() << 10) - temp; temp = (temp * 10 / slope) + 300; - return temp; + return temp; } static uint32_t get_vrefint_cal(void)