From 9984a9965888cbe0407ebdb85b4d1bade32023d1 Mon Sep 17 00:00:00 2001 From: Yerolling <2911328695@qq.com> Date: Fri, 20 May 2022 21:19:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8APrintState=E5=87=BD=E6=95=B0=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E5=AD=97=E6=8D=A2=E6=88=90=E4=BA=86=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bus_io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bus_io.c b/src/bus_io.c index 8180f03..aa32ef0 100644 --- a/src/bus_io.c +++ b/src/bus_io.c @@ -164,15 +164,15 @@ char* PrintState() for(t=queries;t!=NULL;t=t->next_node) { i=t->node->id-1; - if(t->type==0) + if(t->type==BUS_CLOCK_WISE) { clockwise[i]='1'; } - else if(t->time==1) + else if(t->time==BUS_COUNTER_CLOCK_WISE) { counterclockwise[i]='1'; } - else if(t->type==2) + else if(t->type==BUS_TARGET) { target[i]='1'; }