File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
features/nanostack/nanostack-hal-mbed-cmsis-rtos Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 32
32
#define NUMBER_OF_SIMULTANEOUS_TIMEOUTS 2
33
33
#endif // NUMBER_OF_SIMULTANEOUS_TIMEOUTS
34
34
35
+ namespace {
35
36
using namespace mbed ;
36
37
using namespace events ;
37
38
@@ -77,7 +78,6 @@ static fhss_timeout_s *allocate_timeout(void)
77
78
{
78
79
for (int i = 0 ; i < NUMBER_OF_SIMULTANEOUS_TIMEOUTS; i++) {
79
80
if (fhss_timeout[i].fhss_timer_callback == NULL ) {
80
- memset (&fhss_timeout[i], 0 , sizeof (fhss_timeout_s));
81
81
return &fhss_timeout[i];
82
82
}
83
83
}
@@ -169,6 +169,7 @@ static uint32_t platform_fhss_timestamp_read(const fhss_api_t *api)
169
169
(void )api;
170
170
return read_current_time ();
171
171
}
172
+ } // anonymous namespace
172
173
173
174
fhss_timer_t fhss_functions = {
174
175
.fhss_timer_start = platform_fhss_timer_start,
You can’t perform that action at this time.
0 commit comments