Project

General

Profile

Revision 83

added delay between reads

View differences:

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));
71 72
    }
72 73
    *pp = mouse_parse_packet(packet);
73 74
    return SUCCESS;

Also available in: Unified diff