Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 3fdd0e0

Browse files
authored
move include of Wire.h outside of "extern C" (#52)
1 parent 0d33d91 commit 3fdd0e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sensirion_hw_i2c_implementation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
// needed for delay() routine
3636
#include <Arduino.h>
3737

38+
#include <Wire.h>
39+
3840
#ifdef __cplusplus
3941
extern "C" {
4042
#endif
@@ -75,7 +77,6 @@ int8_t sensirion_i2c_write(uint8_t address, const uint8_t *data, uint8_t count)
7577

7678
#else /* SPS30_USE_ALT_I2C */
7779

78-
#include <Wire.h>
7980
/**
8081
* Initialize all hard- and software components that are needed for the I2C
8182
* communication. After this function has been called, the functions

0 commit comments

Comments
 (0)