We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72358cc commit 5267377Copy full SHA for 5267377
components/sensors/battery_fuel_gauge/max17048/include/max17048.h
@@ -7,6 +7,10 @@
7
8
#include "i2c_bus.h"
9
10
+#ifdef __cplusplus
11
+extern "C" {
12
+#endif
13
+
14
#define MAX17048_I2C_ADDR_DEFAULT 0x36
15
16
#define MAX17048_VCELL_REG 0x02 /*!< ADC measurement of VCELL. */
@@ -394,3 +398,7 @@ esp_err_t max17048_set_sleep(max17048_handle_t sensor, bool sleep);
394
398
* - Other esp_err_t codes Errors that may occur during I2C transactions or hardware interaction
395
399
*/
396
400
esp_err_t max17048_is_sleeping(max17048_handle_t sensor, bool *is_sleeping);
401
402
403
+} // extern "C"
404
0 commit comments