mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
Merge remote-tracking branch 'next' into corvuscorax/OP-947_stateestimator-module
This commit is contained in:
commit
88071b1078
@ -181,13 +181,13 @@ bool PIOS_USB_CheckAvailable(__attribute__((unused)) uint32_t id)
|
||||
bool status = usb_found != 0 && transfer_possible ? 1 : 0;
|
||||
bool reconnect = false;
|
||||
#ifdef PIOS_INCLUDE_FREERTOS
|
||||
if(xSemaphoreTakeFromISR(usb_dev->statusCheckSemaphore, NULL) == pdTRUE) {
|
||||
if (xSemaphoreTakeFromISR(usb_dev->statusCheckSemaphore, NULL) == pdTRUE) {
|
||||
#endif
|
||||
reconnect = (lastStatus && !status);
|
||||
lastStatus = status;
|
||||
#ifdef PIOS_INCLUDE_FREERTOS
|
||||
xSemaphoreGiveFromISR(usb_dev->statusCheckSemaphore, NULL);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (reconnect) {
|
||||
raiseDisconnectionCallbacks();
|
||||
|
@ -65,11 +65,9 @@ UAVObjectManager *ConfigPlugin::getObjectManager()
|
||||
}
|
||||
|
||||
void ConfigPlugin::extensionsInitialized()
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
void ConfigPlugin::shutdown()
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
Q_EXPORT_PLUGIN(ConfigPlugin)
|
||||
|
Loading…
Reference in New Issue
Block a user