1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-04 15:04:38 -04:00

Meshtastic: moved meshtasticcommon to a modemmeshtastic module

This commit is contained in:
f4exb
2026-03-15 21:40:33 +01:00
parent ea19e1a0e1
commit 738bdfa744
12 changed files with 103 additions and 39 deletions
@@ -110,9 +110,9 @@ void MeshtasticModEncoder::encodeString(const QString& str, std::vector<unsigned
QString summary;
QString error;
if (Meshtastic::Packet::isCommand(str))
if (modemmeshtastic::Packet::isCommand(str))
{
if (!Meshtastic::Packet::buildFrameFromCommand(str, bytes, summary, error))
if (!modemmeshtastic::Packet::buildFrameFromCommand(str, bytes, summary, error))
{
qWarning() << "MeshtasticModEncoder::encodeString: Meshtastic command error:" << error;
return;
@@ -141,12 +141,12 @@ void MeshtasticModEncoder::encodeBytes(const QByteArray& bytes, std::vector<unsi
{
QByteArray payload(bytes);
if (Meshtastic::Packet::isCommand(QString::fromUtf8(bytes)))
if (modemmeshtastic::Packet::isCommand(QString::fromUtf8(bytes)))
{
QString summary;
QString error;
if (!Meshtastic::Packet::buildFrameFromCommand(QString::fromUtf8(bytes), payload, summary, error))
if (!modemmeshtastic::Packet::buildFrameFromCommand(QString::fromUtf8(bytes), payload, summary, error))
{
qWarning() << "MeshtasticModEncoder::encodeBytes: Meshtastic command error:" << error;
return;