File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ TwoWire::TwoWire(I2C_CONTROLLER _controller_id)
33
33
: rxBufferIndex(0 ), rxBufferLength(0 ), init_status(-1 ),
34
34
controller_id(_controller_id)
35
35
{
36
- // Empty
36
+ rxBuffer = (uint8_t *)dccm_malloc (BUFFER_LENGTH);
37
+ txBuffer = (uint8_t *)dccm_malloc (BUFFER_LENGTH);
37
38
}
38
39
39
40
void TwoWire::begin (void )
Original file line number Diff line number Diff line change @@ -58,13 +58,13 @@ class TwoWire : public Stream {
58
58
59
59
private:
60
60
// RX Buffer
61
- uint8_t rxBuffer[BUFFER_LENGTH] ;
61
+ uint8_t * rxBuffer;
62
62
uint8_t rxBufferIndex;
63
63
uint8_t rxBufferLength;
64
64
65
65
// TX Buffer
66
66
uint8_t txAddress;
67
- uint8_t txBuffer[BUFFER_LENGTH] ;
67
+ uint8_t * txBuffer;
68
68
uint8_t txBufferLength;
69
69
70
70
int init_status;
You can’t perform that action at this time.
0 commit comments