Skip to content

Commit 6b11b1f

Browse files
committed
fix(config): Fix ColorAdjustement serialization
1 parent 3e9a616 commit 6b11b1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/models/instance.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -143,19 +143,19 @@ pub enum ImageToLedMappingType {
143143
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Validate)]
144144
#[serde(default, rename_all = "camelCase", deny_unknown_fields)]
145145
pub struct ColorAdjustment {
146+
/// RGB color temperature in Kelvins
147+
pub rgb_temperature: u32,
146148
pub image_to_led_mapping_type: ImageToLedMappingType,
147149
#[validate]
148150
pub channel_adjustment: Vec<ChannelAdjustment>,
149-
/// RGB color temperature in Kelvins
150-
pub rgb_temperature: u32,
151151
}
152152

153153
impl Default for ColorAdjustment {
154154
fn default() -> Self {
155155
Self {
156+
rgb_temperature: 6600,
156157
image_to_led_mapping_type: ImageToLedMappingType::MulticolorMean,
157158
channel_adjustment: vec![ChannelAdjustment::default()],
158-
rgb_temperature: 6600,
159159
}
160160
}
161161
}

0 commit comments

Comments
 (0)