Skip to content

Commit 5823f14

Browse files
committed
set stats to static
This will be investigated further why it is failing with IAR
1 parent 22cdd95 commit 5823f14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ EventFlags threadFlag;
2828

2929
void print_socket_stats()
3030
{
31-
mbed_stats_socket_t stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT] = {0};
31+
static mbed_stats_socket_t stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT];
3232
int iteration = 0;
3333

3434
while (COMPLETED_FLAG != threadFlag.get()) {

0 commit comments

Comments
 (0)