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

Commit 9e9ea84

Browse files
author
Nathan Seidle
committed
Remove old waitForResponses
1 parent 61e2e2e commit 9e9ea84

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/SparkFun_Ublox_Arduino_Library.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,10 +1706,6 @@ boolean SFE_UBLOX_GPS::setPortInput(uint8_t portID, uint8_t inStreamSettings, ui
17061706
if (getPortSettings(portID, maxWait) == false)
17071707
return (false); //Something went wrong. Bail.
17081708

1709-
// Let's make sure we wait for the ACK too (sendCommand will have returned as soon as the module sent its response)
1710-
// This is only required because we are doing two sendCommands in quick succession using the same class and ID
1711-
//waitForResponse(UBX_CLASS_CFG, UBX_CFG_PRT, 100); // But we'll only wait for 100msec max
1712-
17131709
packetCfg.cls = UBX_CLASS_CFG;
17141710
packetCfg.id = UBX_CFG_PRT;
17151711
packetCfg.len = 20;
@@ -2085,10 +2081,6 @@ boolean SFE_UBLOX_GPS::powerSaveMode(bool power_save, uint16_t maxWait)
20852081
if (sendCommand(packetCfg, maxWait) == false) //Ask module for the current power management settings. Loads into payloadCfg.
20862082
return (false);
20872083

2088-
// Let's make sure we wait for the ACK too (sendCommand will have returned as soon as the module sent its response)
2089-
// This is only required because we are doing two sendCommands in quick succession using the same class and ID
2090-
//waitForResponse(UBX_CLASS_CFG, UBX_CFG_RXM, 100); // But we'll only wait for 100msec max
2091-
20922084
if (power_save)
20932085
{
20942086
payloadCfg[1] = 1; // Power Save Mode
@@ -2120,10 +2112,6 @@ boolean SFE_UBLOX_GPS::setDynamicModel(dynModel newDynamicModel, uint16_t maxWai
21202112
if (sendCommand(packetCfg, maxWait) == false) //Ask module for the current navigation model settings. Loads into payloadCfg.
21212113
return (false);
21222114

2123-
// Let's make sure we wait for the ACK too (sendCommand will have returned as soon as the module sent its response)
2124-
// This is only required because we are doing two sendCommands in quick succession using the same class and ID
2125-
//waitForResponse(UBX_CLASS_CFG, UBX_CFG_NAV5, 100); // But we'll only wait for 100msec max
2126-
21272115
payloadCfg[0] = 0x01; // mask: set only the dyn bit (0)
21282116
payloadCfg[1] = 0x00; // mask
21292117
payloadCfg[2] = newDynamicModel; // dynModel

0 commit comments

Comments
 (0)