diff options
author | jskyboo <jack@ron.hog.mooo.info> | 2017-02-19 04:07:45 -0800 |
---|---|---|
committer | jskyboo <jack@ron.hog.mooo.info> | 2017-02-19 04:07:45 -0800 |
commit | bd74b2ec6287159e596c00b9d54ee607c49f1094 (patch) | |
tree | d3b80950e226ee5c4b17679c12bee6cd96b9de9a /src | |
parent | 7c40255c3a101e848580b22482d90022683b1c60 (diff) | |
download | pfsense-bd74b2ec6287159e596c00b9d54ee607c49f1094.zip pfsense-bd74b2ec6287159e596c00b9d54ee607c49f1094.tar.gz |
Fix ublox parsing.
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/services_ntpd_gps.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/services_ntpd_gps.php b/src/usr/local/www/services_ntpd_gps.php index 4305c47..2de0fa8 100644 --- a/src/usr/local/www/services_ntpd_gps.php +++ b/src/usr/local/www/services_ntpd_gps.php @@ -55,8 +55,8 @@ function set_default_gps() { function parse_ublox(&$nmeaset, $splitline) { $id_idx = 1; $msg_idx = 2; - $ddc_idx = 3; - if ($splitline[$id_idx] == '40' && $splitline[$ddc_idx]) { + $usart1_idx = 4; + if ($splitline[$id_idx] == '40' && $splitline[$usart1_idx]) { $nmeaset['GP' . $splitline[$msg_idx]] = 1; } } |