mirror of
https://github.com/hubaldv/bioz-host-rs.git
synced 2025-12-06 05:11:17 +00:00
Working postcard communication.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
use postcard_rpc::{
|
||||
header::VarSeqKind,
|
||||
host_client::{HostClient, HostErr},
|
||||
standard_icd::{PingEndpoint, WireError, ERROR_PATH},
|
||||
standard_icd::{WireError, ERROR_PATH},
|
||||
};
|
||||
use std::convert::Infallible;
|
||||
use bioz_icd::{
|
||||
AccelRange, BadPositionError, GetUniqueIdEndpoint, Rgb8, SetAllLedEndpoint,
|
||||
use bioz_icd_rs::{
|
||||
AccelRange, BadPositionError, PingEndpoint, GetUniqueIdEndpoint, Rgb8, SetAllLedEndpoint,
|
||||
SetSingleLedEndpoint, SingleLed, StartAccel, StartAccelerationEndpoint,
|
||||
StopAccelerationEndpoint,
|
||||
};
|
||||
@@ -46,7 +46,7 @@ impl<T, E> FlattenErr for Result<T, E> {
|
||||
impl WorkbookClient {
|
||||
pub fn new() -> Self {
|
||||
let client = HostClient::new_raw_nusb(
|
||||
|d| d.product_string() == Some("bioz-amplifier"),
|
||||
|d| d.product_string() == Some("Bioz Amplifier"),
|
||||
ERROR_PATH,
|
||||
8,
|
||||
VarSeqKind::Seq2,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#![deny(missing_debug_implementations)]
|
||||
|
||||
pub mod client;
|
||||
pub use bioz_icd as icd;
|
||||
pub use bioz_icd_rs as icd;
|
||||
|
||||
pub async fn read_line() -> String {
|
||||
tokio::task::spawn_blocking(|| {
|
||||
|
||||
Reference in New Issue
Block a user