mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-02-05 10:53:11 +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()
|
bool SerialImpl::setSingleWireMode()
|
||||||
{
|
{
|
||||||
if (enable) {
|
|
||||||
PX4_ERR("Qurt platform does not support single wire mode");
|
PX4_ERR("Qurt platform does not support single wire mode");
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SerialImpl::getSwapRxTxMode() const
|
bool SerialImpl::getSwapRxTxMode() const
|
||||||
@@ -431,12 +427,8 @@ bool SerialImpl::getSwapRxTxMode() const
|
|||||||
|
|
||||||
bool SerialImpl::setSwapRxTxMode()
|
bool SerialImpl::setSwapRxTxMode()
|
||||||
{
|
{
|
||||||
if (enable) {
|
|
||||||
PX4_ERR("Qurt platform does not support swap rx tx mode");
|
PX4_ERR("Qurt platform does not support swap rx tx mode");
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SerialImpl::setInvertedMode(bool enable)
|
bool SerialImpl::setInvertedMode(bool enable)
|
||||||
|
|||||||
Reference in New Issue
Block a user