Skip to content

Commit

Permalink
modesp32.c: Remove use of STATIC macro per PR micropython#13763.
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Sorensen <rick.sorensen@gmail.com>
  • Loading branch information
ricksorensen committed Mar 12, 2024
1 parent ff23d9e commit 3832098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/esp32/modesp32.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static MP_DEFINE_CONST_FUN_OBJ_0(esp32_raw_temperature_obj, esp32_raw_temperatur
// now have calibrated temperature settings in 5 discrete ranges.
#include "driver/temperature_sensor.h"

STATIC mp_obj_t esp32_mcu_temperature(void) {
static mp_obj_t esp32_mcu_temperature(void) {
static temperature_sensor_handle_t temp_sensor = NULL;
float tvalue;
if (temp_sensor == NULL) {
Expand All @@ -185,7 +185,7 @@ STATIC mp_obj_t esp32_mcu_temperature(void) {
ESP_ERROR_CHECK(temperature_sensor_disable(temp_sensor));
return mp_obj_new_int((int)(tvalue + 0.5));
}
STATIC MP_DEFINE_CONST_FUN_OBJ_0(esp32_mcu_temperature_obj, esp32_mcu_temperature);
static MP_DEFINE_CONST_FUN_OBJ_0(esp32_mcu_temperature_obj, esp32_mcu_temperature);

#endif

Expand Down

0 comments on commit 3832098

Please sign in to comment.