This commit is contained in:
parent
2679815c28
commit
22ba6be780
@ -148,10 +148,7 @@ impl MagnetorquerModel {
|
|||||||
pub fn send_housekeeping_data(&mut self) {
|
pub fn send_housekeeping_data(&mut self) {
|
||||||
let mgt_reply = MgtReply::Hk(self.torque_dipole);
|
let mgt_reply = MgtReply::Hk(self.torque_dipole);
|
||||||
self.reply_sender
|
self.reply_sender
|
||||||
.send(SimReply {
|
.send(SimReply::new(SimDevice::Mgt, mgt_reply))
|
||||||
device: SimDevice::Mgt,
|
|
||||||
reply: serde_json::to_string(&mgt_reply).expect("failed to serialize MgtReply"),
|
|
||||||
})
|
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user