89 cur_gstate = GSTATE_IDLE; |
89 cur_gstate = GSTATE_IDLE; |
90 serial.attach(callback(this, &HPSerial::rx_irq), SerialBase::RxIrq); |
90 serial.attach(callback(this, &HPSerial::rx_irq), SerialBase::RxIrq); |
91 } |
91 } |
92 } |
92 } |
93 //else // prevent from flooding the main unit |
93 //else // prevent from flooding the main unit |
94 ThisThread::sleep_for(5ms); |
94 ThisThread::sleep_for(1ms); |
95 } |
95 } |
96 } |
96 } |
97 |
97 |
98 |
98 |
99 void HPSerial::send_startup_seq(uint8_t keycode) { |
99 void HPSerial::send_startup_seq(uint8_t keycode) { |