File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
features/nanostack/mbed-mesh-api/source Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -97,5 +97,8 @@ nsapi_error_t NanostackEthernetInterface::do_initialize()
97
97
98
98
nsapi_error_t Nanostack::EthernetInterface::bringdown ()
99
99
{
100
- return enet_tasklet_disconnect (true );
100
+ if (enet_tasklet_disconnect (true )) {
101
+ return NSAPI_ERROR_DEVICE_ERROR;
102
+ }
103
+ return NSAPI_ERROR_OK;
101
104
}
Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ int8_t enet_tasklet_disconnect(bool send_cb)
294
294
if (tasklet_data_ptr -> network_interface_id != INVALID_INTERFACE_ID ) {
295
295
status = arm_nwk_interface_down (tasklet_data_ptr -> network_interface_id );
296
296
tasklet_data_ptr -> network_interface_id = INVALID_INTERFACE_ID ;
297
- if (send_cb == true ) {
297
+ if (send_cb ) {
298
298
enet_tasklet_network_state_changed (MESH_DISCONNECTED );
299
299
}
300
300
}
Original file line number Diff line number Diff line change 17
17
#ifndef ENET_TASKLET_H
18
18
#define ENET_TASKLET_H
19
19
20
+ #include "mesh_interface_types.h"
20
21
21
22
#ifdef __cplusplus
22
23
extern "C" {
You can’t perform that action at this time.
0 commit comments