mirror of
https://github.com/hubaldv/bioz-firmware-rs.git
synced 2025-12-06 05:01:18 +00:00
Started writing nice library.
This commit is contained in:
@@ -189,12 +189,12 @@ pub async fn start_impedance_handler(context: SpawnCtx, header: VarHeader, rqst:
|
||||
// phase: impedance.phase,
|
||||
// };
|
||||
|
||||
let data = IMPEDANCE_CHANNEL.receive().await;
|
||||
let msg = IMPEDANCE_CHANNEL.receive().await;
|
||||
|
||||
let msg = Impedance {
|
||||
magnitude: data,
|
||||
phase: data,
|
||||
};
|
||||
// let msg = Impedance {
|
||||
// magnitude: data,
|
||||
// phase: data,
|
||||
// };
|
||||
|
||||
if sender
|
||||
.publish::<ImpedanceTopic>(seq.into(), &msg)
|
||||
|
||||
Reference in New Issue
Block a user