@@ -2717,7 +2717,7 @@ boolean SFE_UBLOX_GPS::getEsfInfo(uint16_t maxWait)
2717
2717
packetCfg.len = 0 ;
2718
2718
packetCfg.startingSpot = 0 ;
2719
2719
2720
- if (sendCommand (packetCfg, maxWait) != SFE_UBLOX_STATUS_DATA_RECEIVED)
2720
+ if (sendCommand (& packetCfg, maxWait) != SFE_UBLOX_STATUS_DATA_RECEIVED)
2721
2721
return (false ); // If command send fails then bail
2722
2722
2723
2723
checkUblox ();
@@ -2739,7 +2739,7 @@ boolean SFE_UBLOX_GPS::getEsfIns(uint16_t maxWait)
2739
2739
packetCfg.len = 0 ;
2740
2740
packetCfg.startingSpot = 0 ;
2741
2741
2742
- if (sendCommand (packetCfg, maxWait) != SFE_UBLOX_STATUS_DATA_RECEIVED)
2742
+ if (sendCommand (& packetCfg, maxWait) != SFE_UBLOX_STATUS_DATA_RECEIVED)
2743
2743
return (false ); // If command send fails then bail
2744
2744
2745
2745
checkUblox ();
@@ -2772,7 +2772,7 @@ boolean SFE_UBLOX_GPS::getEsfDataInfo(uint16_t maxWait)
2772
2772
packetCfg.len = 0 ;
2773
2773
packetCfg.startingSpot = 0 ;
2774
2774
2775
- if (sendCommand (packetCfg, maxWait) != SFE_UBLOX_STATUS_DATA_RECEIVED)
2775
+ if (sendCommand (& packetCfg, maxWait) != SFE_UBLOX_STATUS_DATA_RECEIVED)
2776
2776
return (false ); // If command send fails then bail
2777
2777
2778
2778
checkUblox ();
@@ -2811,7 +2811,7 @@ boolean SFE_UBLOX_GPS::getEsfRawDataInfo(uint16_t maxWait)
2811
2811
packetCfg.len = 0 ;
2812
2812
packetCfg.startingSpot = 0 ;
2813
2813
2814
- if (sendCommand (packetCfg, maxWait) != SFE_UBLOX_STATUS_DATA_RECEIVED)
2814
+ if (sendCommand (& packetCfg, maxWait) != SFE_UBLOX_STATUS_DATA_RECEIVED)
2815
2815
return (false ); // If command send fails then bail
2816
2816
2817
2817
checkUblox ();
@@ -2831,7 +2831,7 @@ sfe_ublox_status_e SFE_UBLOX_GPS::getSensState(uint8_t sensor, uint16_t maxWait)
2831
2831
packetCfg.len = 0 ;
2832
2832
packetCfg.startingSpot = 0 ;
2833
2833
2834
- if (sendCommand (packetCfg, maxWait) != SFE_UBLOX_STATUS_DATA_RECEIVED)
2834
+ if (sendCommand (& packetCfg, maxWait) != SFE_UBLOX_STATUS_DATA_RECEIVED)
2835
2835
return (SFE_UBLOX_STATUS_FAIL); // If command send fails then bail
2836
2836
2837
2837
ubloxSen.numSens = extractByte (15 );
@@ -2875,6 +2875,9 @@ boolean SFE_UBLOX_GPS::getVehAtt(uint16_t maxWait){
2875
2875
packetCfg.len = 0 ;
2876
2876
packetCfg.startingSpot = 0 ;
2877
2877
2878
+ if (sendCommand (&packetCfg, maxWait) != SFE_UBLOX_STATUS_DATA_RECEIVED)
2879
+ return (SFE_UBLOX_STATUS_FAIL); // If command send fails then bail
2880
+
2878
2881
checkUblox ();
2879
2882
2880
2883
vehAtt.roll = extractLong (8 );
0 commit comments