sen5x: remove unused i2cdev forward declarations

This commit is contained in:
2026-02-08 23:07:01 +01:00
parent 4d2e84f027
commit 71a01cc63e
+7 -6
View File
@@ -20,10 +20,6 @@
#include <math.h> // NAN, isfinite, lround
#include "vars.h"
// i2cdev API (aus i2cdev.c)
esp_err_t i2cdev_init(void);
esp_err_t i2cdev_done(void);
static const char* TAG = "sen5x_app";
/* ====================== Konfiguration ====================== */
@@ -308,13 +304,18 @@ void sen5x_app_deinit(void) {
ESP_LOGI(TAG, "Deinitializing SEN5x app...");
g_run = false; // Producer freundlich bitten zu stoppen
g_run = false;
// Warten, bis der Producer sich selbst beendet hat
for (int i = 0; i < 50 && g_task_prod; i++) {
vTaskDelay(pdMS_TO_TICKS(10));
}
if (g_task_prod) {
ESP_LOGW(TAG, "Producer did not stop in time; skip sen5x_stop_measurement/HAL free");
// Hier NICHT sen5x_stop_measurement() / HAL free, weil Task evtl. noch I2C nutzt
return;
}
net_influx_stop();
if (g_device_tag) {