mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-02-05 02:34:32 +08:00
QURT/SERIAL: Undo the breaking changes from commit 17f3db9231. (#26382)
A check was added for a non-existant parameter. This commit removes those.
This commit is contained in:
@@ -416,12 +416,8 @@ bool SerialImpl::getSingleWireMode() const
|
||||
|
||||
bool SerialImpl::setSingleWireMode()
|
||||
{
|
||||
if (enable) {
|
||||
PX4_ERR("Qurt platform does not support single wire mode");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
PX4_ERR("Qurt platform does not support single wire mode");
|
||||
return false;
|
||||
}
|
||||
|
||||
bool SerialImpl::getSwapRxTxMode() const
|
||||
@@ -431,12 +427,8 @@ bool SerialImpl::getSwapRxTxMode() const
|
||||
|
||||
bool SerialImpl::setSwapRxTxMode()
|
||||
{
|
||||
if (enable) {
|
||||
PX4_ERR("Qurt platform does not support swap rx tx mode");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
PX4_ERR("Qurt platform does not support swap rx tx mode");
|
||||
return false;
|
||||
}
|
||||
|
||||
bool SerialImpl::setInvertedMode(bool enable)
|
||||
|
||||
Reference in New Issue
Block a user