We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f72c91 commit b45cf05Copy full SHA for b45cf05
lib/network-protocol/FS.cpp
@@ -190,7 +190,7 @@ bool NetworkProtocolFS::read(unsigned short len)
190
191
bool NetworkProtocolFS::read_file(unsigned short len)
192
{
193
- uint8_t *buf = (uint8_t *)malloc(len);
+ buf = (uint8_t *)malloc(len);
194
195
Debug_printf("NetworkProtocolFS::read_file(%u)\r\n", len);
196
lib/network-protocol/FS.h
@@ -30,6 +30,11 @@ class NetworkProtocolFS : public NetworkProtocol
30
*/
31
bool rmdir_implemented = false;
32
33
+ /**
34
+ * Internal temporary buffer for read
35
+ */
36
+ uint8_t *buf;
37
+
38
/**
39
* @brief ctor
40
* @param rx_buf pointer to receive buffer
0 commit comments