Skip to content

Commit

Permalink
Bugfix: error_count in AircraftBeacon is a int, not a float
Browse files Browse the repository at this point in the history
  • Loading branch information
Meisterschueler committed Jun 5, 2017
1 parent 24336cf commit e7cc73b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# CHANGELOG

## Unreleased
- parser: Bugfix, error_count in aircraft beacon is a int

## 0.7.0 - 2017-06-04
- parser: Added support for OGN v0.2.6 aircraft and receiver beacons
Expand Down
2 changes: 1 addition & 1 deletion ogn/parser/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def parse_ogn_aircraft_beacon(aprs_comment):
'turn_rate': float(ac_match.group('turn_rate')) if ac_match.group('turn_rate') else None,
'flightlevel': float(ac_match.group('flight_level')) if ac_match.group('flight_level') else None,
'signal_quality': float(ac_match.group('signal_quality')) if ac_match.group('signal_quality') else None,
'error_count': float(ac_match.group('errors')) if ac_match.group('errors') else None,
'error_count': int(ac_match.group('errors')) if ac_match.group('errors') else None,
'frequency_offset': float(ac_match.group('frequency_offset')) if ac_match.group('frequency_offset') else None,
'gps_status': ac_match.group('gps_accuracy') if ac_match.group('gps_accuracy') else None,
'software_version': float(ac_match.group('flarm_software_version')) if ac_match.group('flarm_software_version') else None,
Expand Down

0 comments on commit e7cc73b

Please sign in to comment.