Changeset 6248 in josm for trunk/src/org/openstreetmap/josm/io/NmeaReader.java
- Timestamp:
- 2013-09-23T16:47:50+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/NmeaReader.java
r6087 r6248 247 247 byte[] chb = chkstrings[0].getBytes(); 248 248 int chk=0; 249 for (int i = 1; i < chb.length; i++) {249 for (int i = 1; i < chb.length; i++) { 250 250 chk ^= chb[i]; 251 251 } 252 if(Integer.parseInt(chkstrings[1].substring(0,2),16) != chk) { 253 //System.out.println("Checksum error"); 252 if (Integer.parseInt(chkstrings[1].substring(0,2),16) != chk) { 254 253 ps.checksum_errors++; 255 254 ps.p_Wp=null; … … 447 446 return true; 448 447 449 } catch (RuntimeException x) {448 } catch (RuntimeException x) { 450 449 // out of bounds and such 451 // x.printStackTrace();452 // System.out.println("Malformed line: "+s.toString().trim());453 450 ps.malformed++; 454 451 ps.p_Wp=null;
Note:
See TracChangeset
for help on using the changeset viewer.