Skip to content

Commit 0510efd

Browse files
committed
Updated deprecated include <compat/twi.h>
As reported here https://lists.nongnu.org/archive/html/avr-libc-commit/2005-11/msg00009.html <compat/twi.h> has been moved to <util/twi.h> in 2005
1 parent 9b4e9fd commit 0510efd

File tree

1 file changed

+2
-1
lines changed
  • hardware/arduino/avr/libraries/Wire/utility

1 file changed

+2
-1
lines changed

hardware/arduino/avr/libraries/Wire/utility/twi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
Modified 2012 by Todd Krein (todd@krein.org) to implement repeated starts
2020
Modified 2014 by Nicola Corna (nicola@corna.info)
2121
Moved pullups enable from twi.c to Wire.cpp
22+
Updated deprecated include <compat/twi.c>
2223
*/
2324

2425
#include <math.h>
@@ -27,7 +28,7 @@
2728
#include <inttypes.h>
2829
#include <avr/io.h>
2930
#include <avr/interrupt.h>
30-
#include <compat/twi.h>
31+
#include <util/twi.h>
3132

3233
#ifndef cbi
3334
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))

0 commit comments

Comments
 (0)