Skip to content

Commit

Permalink
Don't treat all coordinates as formatted coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Jun 26, 2021
1 parent 528ac8e commit d12b18d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/uorocketry/basestation/data/DataHolder.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ public void updateTableUIWithData(JTable table, String[] labels) {

public boolean set(int index, String currentData) {
// Check for special cases first
boolean isFormattedCoordinate = dataSet.indexEquals("latitude", index) || dataSet.indexEquals("longitude", index);
boolean isFormattedCoordinate = (dataSet.indexEquals("latitude", index) && dataSet.indexEquals("latitudeFormatted", index))
|| (dataSet.indexEquals("longitude", index) && dataSet.indexEquals("longitudeFormatted", index));
boolean isTimestamp = dataSet.indexEquals("timestamp", index);

if (isFormattedCoordinate) {
Expand Down

0 comments on commit d12b18d

Please sign in to comment.