Project

General

Profile

Revision 73

small change

View differences:

lab4.c
44 44
    int mouse_id = 0;
45 45
    int mouse_irq = BIT(mouse_irq_bit);
46 46
    if (subscribe_mouse_interrupt(mouse_irq_bit, &mouse_id)) return 1;
47
    if (mouse_issue_cmd(ENABLE_DATA_REP)) return 1;
47
    if (mouse_set_data_report(true)) return 1;
48 48
    /// cycle
49 49
    int good = 1;
50 50
    uint32_t cnt_now = 0;
......
76 76
    }
77 77

  
78 78
    if (unsubscribe_interrupt(&mouse_id)) return 1;
79
    if (mouse_issue_cmd(DIS_DATA_REP)) return 1;
79
    if (mouse_set_data_report(false)) return 1;
80 80

  
81 81
    return 0;
82 82
}
......
116 116
    // Set Stream mode
117 117
    if ((ret = mouse_issue_cmd(SET_STREAM_MD))) return ret;
118 118
    // Disable data reporting
119
    if ((ret = mouse_issue_cmd(DIS_DATA_REP))) return ret;
119
    if ((ret = mouse_set_data_report(false))) return ret;
120 120

  
121 121
    uint8_t cmd_byte = minix_get_dflt_kbc_cmd_byte();
122 122
    if ((ret = kbc_change_cmd(cmd_byte))) return ret;

Also available in: Unified diff