Skip to content

Commit 66990f9

Browse files
committed
Remove some stale commented out code
1 parent 0d644d7 commit 66990f9

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

libraries/Wire/Wire.h

-25
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
#include "SERCOM.h"
2727
#include "RingBuffer.h"
2828

29-
#define BUFFER_LENGTH 32
30-
3129
// WIRE_HAS_END means Wire has end()
3230
#define WIRE_HAS_END 1
3331

@@ -79,35 +77,12 @@ class TwoWire : public Stream
7977
RingBuffer txBuffer;
8078
uint8_t txAddress;
8179

82-
83-
// Service buffer
84-
//uint8_t srvBuffer[BUFFER_LENGTH];
85-
//uint8_t srvBufferIndex;
86-
//uint8_t srvBufferLength;
87-
8880
// Callback user functions
8981
void (*onRequestCallback)(void);
9082
void (*onReceiveCallback)(int);
9183

92-
// TWI state
93-
//enum TwoWireStatus
94-
//{
95-
// UNINITIALIZED,
96-
// MASTER_IDLE,
97-
// MASTER_SEND,
98-
// MASTER_RECV,
99-
// SLAVE_IDLE,
100-
// SLAVE_RECV,
101-
// SLAVE_SEND
102-
//};
103-
//TwoWireStatus status;
104-
10584
// TWI clock frequency
10685
static const uint32_t TWI_CLOCK = 100000;
107-
108-
// Timeouts
109-
//static const uint32_t RECV_TIMEOUT = 100000;
110-
//static const uint32_t XMIT_TIMEOUT = 100000;
11186
};
11287

11388
#if WIRE_INTERFACES_COUNT > 0

0 commit comments

Comments
 (0)