Commit b21d5a46 authored by Mariano Lizarraga's avatar Mariano Lizarraga

Minor comments

parent 7bb95dbe
......@@ -229,6 +229,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b)
}
else
{
// TODO: This if-else block can (should) be greatly simplified
if (lastIndex[message.sysid][message.compid] == 255)
{
lastIndex[message.sysid][message.compid] = 0;
......
......@@ -28,7 +28,7 @@ SlugsDataSensorView::~SlugsDataSensorView()
void SlugsDataSensorView::addUAS(UASInterface* uas)
{
SlugsMAV* slugsMav = dynamic_cast<SlugsMAV*>(uas);
SlugsMAV* slugsMav = qobject_cast<SlugsMAV*>(uas);
if (slugsMav != NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment