apix-can: remove CAN stop from cleanup()
This commit will remove the call to stop the CAN controller, because freeing the CAN will stop the CAN interface already. Calling stop twice will producing the following error message: DIGIAPIX[824]: [ERROR] ldx_can_process_tx_socket: CAN network is down DIGIAPIX[824]: [ERROR] ldx_can_stop: Unexpected state 0, in can0 interface DIGIAPIX[824]: [ERROR] can0|ldx_can_thr: select error (-27|100) Signed-off-by: Mike Engel <Mike.Engel@digi.com>
This commit is contained in:
parent
1317384494
commit
ff6869f690
|
|
@ -79,7 +79,6 @@ static void cleanup(void)
|
|||
free(canfilter);
|
||||
|
||||
if (can_if) {
|
||||
ldx_can_stop(can_if);
|
||||
ldx_can_free(can_if);
|
||||
running = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -111,7 +111,6 @@ void ms_sleep(uint32_t ms)
|
|||
static void cleanup(void)
|
||||
{
|
||||
if (can_if) {
|
||||
ldx_can_stop(can_if);
|
||||
ldx_can_free(can_if);
|
||||
running = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue