Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit 8ece650

Browse files
committed
Move debug messages to flash.
1 parent e255360 commit 8ece650

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/SparkFun_Ublox_Arduino_Library.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -1196,13 +1196,13 @@ void SFE_UBLOX_GPS::printPacket(ubxPacket *packet)
11961196
{
11971197
_debugSerial->print(F("CLS:"));
11981198
if (packet->cls == UBX_CLASS_NAV) //1
1199-
_debugSerial->print("NAV");
1199+
_debugSerial->print(F("NAV"));
12001200
else if (packet->cls == UBX_CLASS_ACK) //5
1201-
_debugSerial->print("ACK");
1201+
_debugSerial->print(F("ACK"));
12021202
else if (packet->cls == UBX_CLASS_CFG) //6
1203-
_debugSerial->print("CFG");
1203+
_debugSerial->print(F("CFG"));
12041204
else if (packet->cls == UBX_CLASS_MON) //0x0A
1205-
_debugSerial->print("MON");
1205+
_debugSerial->print(F("MON"));
12061206
else
12071207
{
12081208
_debugSerial->print(F("0x"));
@@ -1211,11 +1211,11 @@ void SFE_UBLOX_GPS::printPacket(ubxPacket *packet)
12111211

12121212
_debugSerial->print(F(" ID:"));
12131213
if (packet->cls == UBX_CLASS_NAV && packet->id == UBX_NAV_PVT)
1214-
_debugSerial->print("PVT");
1214+
_debugSerial->print(F("PVT"));
12151215
else if (packet->cls == UBX_CLASS_CFG && packet->id == UBX_CFG_RATE)
1216-
_debugSerial->print("RATE");
1216+
_debugSerial->print(F("RATE"));
12171217
else if (packet->cls == UBX_CLASS_CFG && packet->id == UBX_CFG_CFG)
1218-
_debugSerial->print("SAVE");
1218+
_debugSerial->print(F("SAVE"));
12191219
else
12201220
{
12211221
_debugSerial->print(F("0x"));

0 commit comments

Comments
 (0)