Skip to content

Commit 166b0ee

Browse files
committed
Fix compiler warnings with debug prints
1 parent 2be9c38 commit 166b0ee

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: src/SparkFun_Ublox_Arduino_Library.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ boolean SFE_UBLOX_GPS::checkUbloxI2C()
232232
uint8_t lsb = _i2cPort->read();
233233
if (lsb == 0xFF)
234234
{
235-
debugPrintln("No bytes available");
235+
debugPrintln((char *)"No bytes available");
236236
lastCheck = millis(); //Put off checking to avoid I2C bus traffic
237237
return (false);
238238
}
@@ -241,7 +241,7 @@ boolean SFE_UBLOX_GPS::checkUbloxI2C()
241241

242242
if (bytesAvailable == 0)
243243
{
244-
debugPrintln("Zero bytes available");
244+
debugPrintln((char *)"Zero bytes available");
245245
lastCheck = millis(); //Put off checking to avoid I2C bus traffic
246246
return (false);
247247
}
@@ -298,7 +298,7 @@ boolean SFE_UBLOX_GPS::checkUbloxI2C()
298298
{
299299
if (incoming == 0x7F)
300300
{
301-
debugPrintln("Module not ready with data");
301+
debugPrintln((char *)"Module not ready with data");
302302
delay(5); //In logic analyzation, the module starting responding after 1.48ms
303303
goto TRY_AGAIN;
304304
}
@@ -527,7 +527,7 @@ void SFE_UBLOX_GPS::processUBX(uint8_t incoming, ubxPacket *incomingUBX)
527527
{
528528
if (_printDebug == true)
529529
{
530-
debugPrintln("Checksum failed. Response too big?");
530+
debugPrintln((char *)"Checksum failed. Response too big?");
531531

532532
//Drive an external pin to allow for easier logic analyzation
533533
digitalWrite(2, LOW);
@@ -580,7 +580,7 @@ void SFE_UBLOX_GPS::processUBXpacket(ubxPacket *msg)
580580
if (msg->id == UBX_ACK_ACK && msg->payload[0] == packetCfg.cls && msg->payload[1] == packetCfg.id)
581581
{
582582
//The ack we just received matched the CLS/ID of last packetCfg sent
583-
debugPrintln("Command sent/ack'd successfully");
583+
debugPrintln((char *)"Command sent/ack'd successfully");
584584
commandAck = true;
585585
}
586586
break;
@@ -897,7 +897,7 @@ boolean SFE_UBLOX_GPS::waitForResponse(uint8_t requestedClass, uint8_t requested
897897
//Did we receive a config packet that matches the cls/id we requested?
898898
if (packetCfg.cls == requestedClass && packetCfg.id == requestedID)
899899
{
900-
debugPrintln("CLS/ID match!");
900+
debugPrintln((char *)"CLS/ID match!");
901901
return (true); //If the packet we just sent was a NAV packet then we'll just get data back
902902
}
903903
else
@@ -914,7 +914,7 @@ boolean SFE_UBLOX_GPS::waitForResponse(uint8_t requestedClass, uint8_t requested
914914
delayMicroseconds(500);
915915
}
916916

917-
debugPrintln("waitForResponse timeout");
917+
debugPrintln((char *)"waitForResponse timeout");
918918

919919
return (false);
920920
}

0 commit comments

Comments
 (0)