File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 30
30
#include " FifoBuffer.h"
31
31
#include < memory>
32
32
33
- #define RX_BUFFER_DIM 1024
34
-
35
33
class WiFiClient : public Client {
36
34
37
35
public:
@@ -74,6 +72,7 @@ class WiFiClient : public Client {
74
72
int _sock;
75
73
int _connectionTimeout = 0 ;
76
74
void getSocket ();
75
+ static constexpr uint32_t RX_BUFFER_DIM = 1024 ;
77
76
std::shared_ptr<FifoBuffer<uint8_t ,RX_BUFFER_DIM>> rx_buffer;
78
77
int _read ();
79
78
void read_if_needed (size_t s);
Original file line number Diff line number Diff line change 30
30
#include " Modem.h"
31
31
#include " FifoBuffer.h"
32
32
33
- #define RX_BUFFER_DIM 1461
34
-
35
33
class WiFiUDP : public UDP {
36
34
private:
37
35
int _sock;
36
+ static constexpr uint32_t RX_BUFFER_DIM = 1461 ;
38
37
FifoBuffer<uint8_t ,RX_BUFFER_DIM> rx_buffer;
39
38
40
39
protected:
You can’t perform that action at this time.
0 commit comments