mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 16:03:33 +08:00
dsm: add deinit function
This implements closing of the serial port which previously was not taken care of.
This commit is contained in:
@@ -305,6 +305,13 @@ dsm_init(const char *device)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
dsm_deinit()
|
||||
{
|
||||
close(dsm_fd);
|
||||
dsm_fd = -1;
|
||||
}
|
||||
|
||||
#ifdef GPIO_SPEKTRUM_PWR_EN
|
||||
/**
|
||||
* Handle DSM satellite receiver bind mode handler
|
||||
|
||||
Reference in New Issue
Block a user