8000 modesp32.c: Remove use of STATIC macro per PR #13763. · micropython/micropython@3832098 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3832098

Browse files
committed
modesp32.c: Remove use of STATIC macro per PR #13763.
Signed-off-by: Rick Sorensen <rick.sorensen@gmail.com>
1 parent ff23d9e commit 3832098

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/esp32/modesp32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static MP_DEFINE_CONST_FUN_OBJ_0(esp32_raw_temperature_obj, esp32_raw_temperatur
173173
// now have calibrated temperature settings in 5 discrete ranges.
174174
#include "driver/temperature_sensor.h"
175175

176-
STATIC mp_obj_t esp32_mcu_temperature(void) {
176+
static mp_obj_t esp32_mcu_temperature(void) {
177177
static temperature_sensor_handle_t temp_sensor = NULL;
178178
float tvalue;
179179
if (temp_sensor == NULL) {
@@ -185,7 +185,7 @@ STATIC mp_obj_t esp32_mcu_temperature(void) {
185185
ESP_ERROR_CHECK(temperature_sensor_disable(temp_sensor));
186186
return mp_obj_new_int((int)(tvalue + 0.5));
187187
}
188-
STATIC MP_DEFINE_CONST_FUN_OBJ_0(esp32_mcu_temperature_obj, esp32_mcu_temperature);
188+
static MP_DEFINE_CONST_FUN_OBJ_0(esp32_mcu_temperature_obj, esp32_mcu_temperature);
189189

190190
#endif
191191

0 commit comments

Comments
 (0)
0