1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 09:18:54 -05:00

Fix Qt5 compilation

This commit is contained in:
srcejon 2024-04-10 01:58:31 +01:00
parent c3a1c8db0e
commit 84960eff03

View File

@ -697,7 +697,6 @@ bool RS41Subframe::getHumidityPressureCal(float *vec, float *mat) const
for (int i = 0; i < 12; i++) { for (int i = 0; i < 12; i++) {
mat[i] = 0.0f; mat[i] = 0.0f;
} }
qDebug() << "hasHumidityPressureCal: false";
return false; return false;
} }
} }
@ -709,8 +708,8 @@ QString RS41Subframe::getType() const
{ {
QByteArray bytes = m_subframe.mid(0x218, 10); QByteArray bytes = m_subframe.mid(0x218, 10);
while ((bytes.size() > 0) && (bytes.back() == 0)) { while ((bytes.size() > 0) && (bytes.back() == '\0')) {
bytes.removeLast(); bytes.remove(bytes.size() - 1, 1);
} }
return QString(bytes).trimmed(); return QString(bytes).trimmed();