summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/local/www/services_ntpd_gps.php4
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;
}
}
OpenPOWER on IntegriCloud