1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-14 07:23:38 -04:00

Remove unused variables and support port 65535.

This commit is contained in:
Jon Beniston
2026-07-31 15:57:06 +01:00
parent 5dfbe7865c
commit 13f9fe4cd7
+1 -3
View File
@@ -102,8 +102,6 @@ bool AISSettings::deserialize(const QByteArray& data)
{
QByteArray bytetmp;
uint32_t utmp;
QString strtmp;
QByteArray blob;
d.readString(20, &m_title, "AIS");
d.readU32(21, &m_rgbColor, QColor(102, 0, 0).rgb());
@@ -111,7 +109,7 @@ bool AISSettings::deserialize(const QByteArray& data)
d.readString(23, &m_reverseAPIAddress, "127.0.0.1");
d.readU32(24, &utmp, 0);
if ((utmp > 1023) && (utmp < 65535)) {
if ((utmp > 1023) && (utmp <= 65535)) {
m_reverseAPIPort = utmp;
} else {
m_reverseAPIPort = 8888;