mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +08:00
fix: Allow >12 tokens in FSInn information packet
This commit is contained in:
@@ -35,10 +35,13 @@ namespace swift::core::fsd
|
|||||||
|
|
||||||
PlaneInformationFsinn PlaneInformationFsinn::fromTokens(const QStringList &tokens)
|
PlaneInformationFsinn PlaneInformationFsinn::fromTokens(const QStringList &tokens)
|
||||||
{
|
{
|
||||||
if (tokens.size() != 12)
|
// TODO TZ
|
||||||
|
// in same cases we found 13 tokens
|
||||||
|
if (tokens.size() < 12)
|
||||||
{
|
{
|
||||||
swift::misc::CLogMessage(static_cast<PlaneInformationFsinn *>(nullptr))
|
swift::misc::CLogMessage(static_cast<PlaneInformationFsinn *>(nullptr))
|
||||||
.debug(u"Wrong number of arguments.");
|
.debug(u"PlaneInformationFsinn::fromTokens Wrong number of arguments %1.")
|
||||||
|
<< tokens.size();
|
||||||
return {};
|
return {};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user