Skip to content

Commit 2b899b6

Browse files
committed
cc3200: Remove asserts from sl_Stop() and reduce timeout to 250ms.
1 parent 6ff9a47 commit 2b899b6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

cc3200/bootmgr/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
//*****************************************************************************
5454
// Local Constants
5555
//*****************************************************************************
56-
#define SL_STOP_TIMEOUT 500
56+
#define SL_STOP_TIMEOUT 250
5757
#define BOOTMGR_HASH_ALGO SHAMD5_ALGO_MD5
5858
#define BOOTMGR_HASH_SIZE 32
5959
#define BOOTMGR_BUFF_SIZE 512

cc3200/mods/modwlan.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ typedef struct _wlan_obj_t {
130130
#define ASSERT_ON_ERROR( x ) ASSERT((x) >= 0 )
131131

132132
#define IPV4_ADDR_STR_LEN_MAX (16)
133-
#define SL_STOP_TIMEOUT 500
133+
#define SL_STOP_TIMEOUT 250
134134

135135
#define WLAN_MAX_RX_SIZE 16000
136136

@@ -501,7 +501,7 @@ void wlan_sl_disable (void) {
501501
xSemaphoreTake (xWlanSemaphore, portMAX_DELAY);
502502
#endif
503503
wlan_obj.mode = -1;
504-
ASSERT_ON_ERROR (sl_Stop(SL_STOP_TIMEOUT));
504+
sl_Stop(SL_STOP_TIMEOUT);
505505
}
506506
}
507507

@@ -551,7 +551,7 @@ STATIC void wlan_reenable (SlWlanMode_t mode) {
551551
#ifdef USE_FREERTOS
552552
xSemaphoreTake (xWlanSemaphore, portMAX_DELAY);
553553
#endif
554-
ASSERT_ON_ERROR(sl_Stop(SL_STOP_TIMEOUT));
554+
sl_Stop(SL_STOP_TIMEOUT);
555555
wlan_obj.mode = sl_Start(0, 0, 0);
556556
#ifdef USE_FREERTOS
557557
xSemaphoreGive (xWlanSemaphore);

0 commit comments

Comments
 (0)