File tree 1 file changed +3
-3
lines changed
Filter options
1 file changed +3
-3
lines changed
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ uint8_t WiFiUDP::begin(IPAddress address, uint16_t port){
44
44
45
45
server_port = port;
46
46
47
- tx_buffer = new char [ 1460 ] ;
47
+ tx_buffer = ( char *) malloc ( 1460 ) ;
48
48
if (!tx_buffer){
49
49
log_e (" could not create tx buffer: %d" , errno);
50
50
return 0 ;
@@ -100,7 +100,7 @@ uint8_t WiFiUDP::beginMulticast(IPAddress a, uint16_t p){
100
100
101
101
void WiFiUDP::stop (){
102
102
if (tx_buffer){
103
- delete[] tx_buffer;
103
+ free ( tx_buffer) ;
104
104
tx_buffer = NULL ;
105
105
}
106
106
tx_buffer_len = 0 ;
@@ -136,7 +136,7 @@ int WiFiUDP::beginPacket(){
136
136
137
137
// allocate tx_buffer if is necessary
138
138
if (!tx_buffer){
139
- tx_buffer = new char [ 1460 ] ;
139
+ tx_buffer = ( char *) malloc ( 1460 ) ;
140
140
if (!tx_buffer){
141
141
log_e (" could not create tx buffer: %d" , errno);
142
142
return 0 ;
You can’t perform that action at this time.
0 commit comments