diff --git a/src/controller.c b/src/controller.c index 15eca77..74c13b1 100644 --- a/src/controller.c +++ b/src/controller.c @@ -46,6 +46,7 @@ int FCFSDirection() bus_query_t *FCFSQuery() { +<<<<<<< HEAD return NULL; } @@ -77,4 +78,16 @@ int SCANDirection(bus_query_t *target_query) bus_query_t *SCANBTWQuery() { return NULL; +======= + bus_query_t *p = queries; + if (the_bus->rail_node_pos == p->node) + { + return p; + } + else + { + queries = queries->next_node; + return NULL; + } +>>>>>>> dev } \ No newline at end of file