File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ static void render(void) {
124124 position .y0 + (TEXT_SIZE + 2 ) * (line ++ ), text_buffer );
125125 }
126126
127+ #if defined(CONFIG_IDF_TARGET_ESP32P4 )
127128 res = temperature_sensor_enable (temp_handle );
128129 if (res == ESP_OK ) {
129130 float tsens_out ;
@@ -136,6 +137,7 @@ static void render(void) {
136137 };
137138 temperature_sensor_disable (temp_handle );
138139 }
140+ #endif
139141
140142 display_blit_buffer (buffer );
141143}
@@ -144,10 +146,12 @@ void menu_power_information(void) {
144146 QueueHandle_t input_event_queue = NULL ;
145147 ESP_ERROR_CHECK (bsp_input_get_queue (& input_event_queue ));
146148
149+ #if defined(CONFIG_IDF_TARGET_ESP32P4 )
147150 if (temp_handle == NULL ) {
148151 temperature_sensor_config_t temp_sensor_config = TEMPERATURE_SENSOR_CONFIG_DEFAULT (20 , 50 );
149152 ESP_ERROR_CHECK (temperature_sensor_install (& temp_sensor_config , & temp_handle ));
150153 }
154+ #endif
151155
152156 render ();
153157 while (1 ) {
You can’t perform that action at this time.
0 commit comments