Writing an interrupt seems so slow...

This commit is contained in:
Luke
2020-04-24 23:14:09 +12:00
parent ccae9dd764
commit 9846437efb
6 changed files with 133 additions and 64 deletions

View File

@@ -127,7 +127,7 @@ impl RogCore {
Err(AuraError::UsbError(rusb::Error::NoDevice))
}
fn aura_write(&mut self, message: &[u8]) -> Result<(), AuraError> {
pub fn aura_write(&mut self, message: &[u8]) -> Result<(), AuraError> {
self.handle
.write_interrupt(self.led_endpoint, message, Duration::from_micros(1))
.unwrap();