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 22cdd95 commit 5823f14Copy full SHA for 5823f14
main.cpp
@@ -28,7 +28,7 @@ EventFlags threadFlag;
28
29
void print_socket_stats()
30
{
31
- mbed_stats_socket_t stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT] = {0};
+ static mbed_stats_socket_t stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT];
32
int iteration = 0;
33
34
while (COMPLETED_FLAG != threadFlag.get()) {
0 commit comments