Fix optional definition of FieldData

This commit is contained in:
Sikkema, Isaac 2023-06-19 11:28:28 -04:00 committed by Marcel
parent ddaa99c209
commit 4fd1a72812

View file

@ -302,8 +302,7 @@ impl Clone for CalibData {
/// Contains read sensors values e.g. temperature, pressure, humidity etc.
#[derive(Debug, Default, Copy)]
#[cfg(feature = "serde")]
#[derive(Serialize, Deserialize)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[repr(C)]
pub struct FieldData {
/// Contains new_data, gasm_valid & heat_stab