mirror of
https://gitee.com/openharmony/base_location
synced 2024-11-24 07:21:11 +00:00
bugfix:max fence
Signed-off-by: 李文龙 <liwenlong22@huawei.com>
This commit is contained in:
parent
c52e5175fc
commit
5f8c0edd28
@ -295,6 +295,9 @@ LocationErrCode LocationGnssGeofenceCallbackNapi::DealGeofenceOperationResult()
|
||||
case GnssGeofenceOperateResult::GNSS_GEOFENCE_OPERATION_ERROR_PARAMS_INVALID:
|
||||
errCode = ERRCODE_SERVICE_UNAVAILABLE;
|
||||
break;
|
||||
case GnssGeofenceOperateResult::GNSS_GEOFENCE_OPERATION_ERROR_GEOFENCE_ID_UNKNOWN:
|
||||
errCode = ERRCODE_GEOFENCE_INCORRECT_ID;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -36,6 +36,7 @@ enum GnssGeofenceOperateResult {
|
||||
GNSS_GEOFENCE_OPERATION_ERROR_TOO_MANY_GEOFENCES = -2,
|
||||
GNSS_GEOFENCE_OPERATION_ERROR_GEOFENCE_ID_EXISTS = -3,
|
||||
GNSS_GEOFENCE_OPERATION_ERROR_PARAMS_INVALID = -4,
|
||||
GNSS_GEOFENCE_OPERATION_ERROR_GEOFENCE_ID_UNKNOWN = -5,
|
||||
};
|
||||
|
||||
enum GnssGeofenceOperateType {
|
||||
|
Loading…
Reference in New Issue
Block a user