main/task_bmp280.h

changeset 2
3462a53e548f
parent 1
1c9894662795
--- a/main/task_bmp280.h	Mon Mar 27 22:13:21 2023 +0200
+++ b/main/task_bmp280.h	Tue Mar 28 11:25:46 2023 +0200
@@ -12,13 +12,13 @@
  * Error codes in this task
  */
 #define	BMP280_ERR_NONE			0	///< No errors
-//#define	I2C_ERR_READ			1	///< Generic read error
+#define BMP280_ERR_READ			1
 
 
 /**
- * @brief BMP280 sensor
+ * @brief Structure containing the variables for the BMP280 task.
  */
-typedef struct strBMP280 {
+typedef struct {
     bool		valid;			///< Valid measurement
     bool		fake;			///< Fake measurement
     uint8_t		address;		///< Device i2c address
@@ -26,14 +26,6 @@
     float		humidity;
     float		pressure;		///< Pressure in hPa
     int			error;			///< Error result
-} bmp280_tt;
-
-
-/**
- * @brief Structure containing the variables for the BMP280 task.
- */
-typedef struct {
-    bmp280_tt		bmp280;			///< Sensor results
 } BMP280_State;
 
 

mercurial