Change-Id: I3a8dca12e5a328568b476890f938346b1956905f
Signed-off-by: kj7.sung <kj7.sung@samsung.com>
uint numActive;
uint numInView = 0;
int timestamp;
- Interop.GpsSatellite.GetSatelliteStatus(_handle, out numActive, out numInView, out timestamp);
+ int ret = Interop.GpsSatellite.GetSatelliteStatus(_handle, out numActive, out numInView, out timestamp);
+ if (((LocationError)ret != LocationError.None))
+ {
+ Log.Error(Globals.LogTag, "Error getting the satellite" + (LocationError)ret);
+ throw LocationErrorFactory.ThrowLocationException(ret);
+ }
return numInView;
}