make location_share a boolean

This commit is contained in:
Sacha Weatherstone
2022-03-20 11:01:49 +11:00
parent 535919dfff
commit 4cd1570543
3 changed files with 7 additions and 18 deletions
+1 -2
View File
@@ -151,8 +151,7 @@ GpsOperation GPS::getGpsOp() const
auto op = radioConfig.preferences.gps_operation;
if (op == GpsOperation_GpsOpUnset)
op = (radioConfig.preferences.location_share == LocationSharing_LocDisabled) ? GpsOperation_GpsOpTimeOnly
: GpsOperation_GpsOpMobile;
op = (radioConfig.preferences.disable_location_share) ? GpsOperation_GpsOpTimeOnly : GpsOperation_GpsOpMobile;
return op;
}