把PrintState函数中的数字换成了全局变量

This commit is contained in:
Yerolling 2022-05-20 21:19:14 +08:00
parent 415d871524
commit 9984a99658

View File

@ -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';
}