From ca37046e51eedd24b456e6fc7b38d3ec176b2134 Mon Sep 17 00:00:00 2001 From: Naoya Takamura Date: Wed, 21 Dec 2011 17:24:05 +0900 Subject: [PATCH] =?utf8?q?GPS=20valid=3D07=E3=81=AB=E3=81=AA=E3=82=89?= =?utf8?q?=E3=81=AA=E3=81=8F=E3=81=A6=E3=82=82=E8=A8=98=E9=8C=B2=E3=82=92?= =?utf8?q?=E9=96=8B=E5=A7=8B=E3=81=97=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86?= =?utf8?q?=E3=83=90=E3=82=B0=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- scilog | Bin 34919 -> 34919 bytes scilog.c | 2 +- thread_rec.c | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scilog b/scilog index 43d2f450b42c24b487be7cdb41a40626f36926de..e2588f2b1ecba36340e7682c8110e63ff6f4eb1f 100755 GIT binary patch delta 23 fcmaDpf$8}KrVTAB9PA9ikJ%X*q&D}c+)f4nYL^I7 delta 23 fcmaDpf$8}KrVTAB91IM>kJ%X*xHk8w+)f4nY1{}q diff --git a/scilog.c b/scilog.c index 932fd84..4ac9e88 100644 --- a/scilog.c +++ b/scilog.c @@ -39,7 +39,7 @@ // ダミーデータを自分で発生するときに定義 //#define DUMMY -#define VERSION "1.0" +#define VERSION "1.0.1" #define DEV_SPI "/dev/spike-ad" diff --git a/thread_rec.c b/thread_rec.c index 0afc04e..ed228ab 100644 --- a/thread_rec.c +++ b/thread_rec.c @@ -41,7 +41,7 @@ int ProcTimeFix(void) // 最新データの時刻取得 d = ad_ring_get(latest); // GPS Validチェック, tacc < 1000nsec - if (d->gps.valid & 0x07 && d->gps.tacc < 1000) { + if (((d->gps.valid & 0x07) == 0x07) && (d->gps.tacc < 1000)) { PDEBUG("ProcTimeFix: rec init.\n"); return STS_REC_INIT; } -- 2.11.0