Switched to proper Ipv4Addr type

This commit is contained in:
2023-01-05 02:09:36 +01:00
parent c9b2127eed
commit 69abaf98d7
3 changed files with 10 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
use std::{fs, error::Error, collections::HashMap};
use std::{fs, error::Error, collections::HashMap, net::Ipv4Addr};
use tracing::{debug, trace};
use rumqttc::AsyncClient;
@@ -100,8 +100,8 @@ pub enum Device {
AudioSetup {
#[serde(flatten)]
mqtt: MqttDeviceConfig,
mixer: [u8; 4],
speakers: [u8; 4],
mixer: Ipv4Addr,
speakers: Ipv4Addr,
}
}