Skip to content

Commit 17e5e09

Browse files
authored
Fix repo sync/ci failure (tensorflow#170)
@tensorflow/micro undefine the abs() macro from Arduino.h as it conflicts with micro_mutable_op_resolver.h and its descendant includes bug=fixes Fix problem with daily sync #169
1 parent 0709653 commit 17e5e09

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/peripherals/peripherals.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ limitations under the License.
1919
#ifdef ARDUINO
2020
#include <Arduino.h>
2121
#include <Wire.h>
22+
23+
// Temporary fix, see buganizer #268498682, arduino-examples issue #169
24+
#undef abs
25+
2226
#else // ARDUINO
2327
#error "unsupported framework"
2428
#endif // ARDUINO

0 commit comments

Comments
 (0)