bugfix:max fence

Signed-off-by: 李文龙 <liwenlong22@huawei.com>
This commit is contained in:
李文龙 2024-07-18 19:27:27 +08:00
parent c52e5175fc
commit 5f8c0edd28
2 changed files with 4 additions and 0 deletions

View File

@ -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;
}

View File

@ -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 {