From 6d6ed8e48b73b502ac938cd8a8446a63e70d3044 Mon Sep 17 00:00:00 2001 From: jackfiled Date: Sun, 29 May 2022 21:20:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=BC=80=E5=A7=8B?= =?UTF-8?q?=E6=97=B6=E8=BD=A6=E8=BE=86=E5=81=9C=E6=AD=A2=E4=B8=8D=E5=8A=A8?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- all_test/main.c | 1 + main.c | 1 + 2 files changed, 2 insertions(+) diff --git a/all_test/main.c b/all_test/main.c index 4c8886c..775c1e7 100644 --- a/all_test/main.c +++ b/all_test/main.c @@ -82,6 +82,7 @@ int main() // 如果到站,处理请求和 if(JudgeOnStation() == BUS_TRUE) { + direction = FCFSDirection(); // 在开始也得进行一次方向的判断 finished_query = FCFSQuery(); if(finished_query != NULL) // 有请求就处理请求 diff --git a/main.c b/main.c index 0580ce5..f37b1a1 100644 --- a/main.c +++ b/main.c @@ -58,6 +58,7 @@ int main() // 如果到站,处理请求和 if(JudgeOnStation() == BUS_TRUE) { + direction = FCFSDirection(); //在开始得判断一次方向 finished_query = FCFSQuery(); if(finished_query != NULL) // 有请求就处理请求