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)
3333 : rxBufferIndex(0 ), rxBufferLength(0 ), init_status(-1 ),
3434 controller_id(_controller_id)
3535{
36- // Empty
36+ rxBuffer = (uint8_t *)dccm_malloc (BUFFER_LENGTH);
37+ txBuffer = (uint8_t *)dccm_malloc (BUFFER_LENGTH);
3738}
3839
3940void TwoWire::begin (void )
Original file line number Diff line number Diff line change @@ -58,13 +58,13 @@ class TwoWire : public Stream {
5858
5959private:
6060 // RX Buffer
61- uint8_t rxBuffer[BUFFER_LENGTH] ;
61+ uint8_t * rxBuffer;
6262 uint8_t rxBufferIndex;
6363 uint8_t rxBufferLength;
6464
6565 // TX Buffer
6666 uint8_t txAddress;
67- uint8_t txBuffer[BUFFER_LENGTH] ;
67+ uint8_t * txBuffer;
6868 uint8_t txBufferLength;
6969
7070 int init_status;
You can’t perform that action at this time.
0 commit comments