Skip to content

Commit d1346aa

Browse files
committed
Rename Location to CellularLocation
1 parent 6531063 commit d1346aa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ArduinoCellular.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ bool ArduinoCellular::connect(String apn, String username, String password){
8787
}
8888

8989

90-
Location ArduinoCellular::getGPSLocation(unsigned long timeout){
90+
CellularLocation ArduinoCellular::getGPSLocation(unsigned long timeout){
9191
if (model == ModemModel::EG25){
9292
float latitude = 0.00000;
9393
float longitude = 0.00000;
@@ -98,7 +98,7 @@ Location ArduinoCellular::getGPSLocation(unsigned long timeout){
9898
delay(1000);
9999
}
100100

101-
Location loc;
101+
CellularLocation loc;
102102
loc.latitude = latitude;
103103
loc.longitude = longitude;
104104

@@ -107,7 +107,7 @@ Location ArduinoCellular::getGPSLocation(unsigned long timeout){
107107
if(this->debugStream != nullptr){
108108
this->debugStream->println("Unsupported modem model");
109109
}
110-
return Location();
110+
return CellularLocation();
111111
}
112112
}
113113

src/ArduinoCellular.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class SMS {
7171
* @struct Location
7272
* @brief Represents a geographic location with latitude and longitude coordinates.
7373
*/
74-
struct Location {
74+
struct CellularLocation {
7575
float latitude; /**< The latitude coordinate of the location. */
7676
float longitude; /**< The longitude coordinate of the location. */
7777
};
@@ -136,7 +136,7 @@ class ArduinoCellular {
136136
* @param timeout The timeout (In milliseconds) to wait for the GPS location.
137137
* @return The GPS location. If the location is not retrieved, the latitude and longitude will be 0.0.
138138
*/
139-
Location getGPSLocation(unsigned long timeout = 60000);
139+
CellularLocation getGPSLocation(unsigned long timeout = 60000);
140140

141141
/**
142142
* @brief Gets the current time from the network.

0 commit comments

Comments
 (0)