Project

General

Profile

Revision 85

fixed remote delay problem

View differences:

lab4/lab4.c
91 91
    while(cnt--){
92 92
        if(mouse_poll(&pp, period)) return 1;
93 93
        mouse_print_packet(&pp);
94
        tickdelay(micros_to_ticks(period*1000));
94 95
    }
95 96
    /*
96 97
    while (good) {
lab4/mouse.c
68 68
    for(unsigned i = 0; i < 3; ++i){
69 69
        if((ret = mouse_poll_byte(&byte, period))) return ret;
70 70
        packet[i] = byte;
71
        tickdelay(micros_to_ticks(period*1000));
72 71
    }
73 72
    *pp = mouse_parse_packet(packet);
74 73
    return SUCCESS;

Also available in: Unified diff