boolean initialised = false;
public void show(AltosState state, int crc_errors) {
// if insufficient gps data, nothing to update
- if (!state.gps_ready) {
+ if (state.gps == null || !state.gps.locked) {
if (state.pad_lat == 0 && state.pad_lon == 0)
return;
if (state.ngps < 3)
setPreferredSize(new Dimension(500,200));
}
}
-