11use defmt:: { error, info} ;
22use embassy_time:: { Instant , Timer } ;
3- use peripheral_services:: serial:: service:: SerialService ;
43use strum:: EnumCount ;
4+ use uor_peripherals:: serial:: peripheral:: UORSerial ;
55use uor_utils:: utils:: types:: AsyncMutex ;
66
77use crate :: adc:: driver:: types:: { DataRate , Filter , Gain , ReferenceRange } ;
@@ -20,7 +20,7 @@ pub struct PressureService<const ADC_COUNT: usize> {
2020 // Other services are passed by a mutex to ensure safe concurrent access
2121 pub adc_service : & ' static AsyncMutex < AdcService < ADC_COUNT > > ,
2222 pub sd_card_service : & ' static AsyncMutex < SDCardService > ,
23- pub serial_service : & ' static AsyncMutex < SerialService > ,
23+ pub serial_service : & ' static AsyncMutex < UORSerial > ,
2424 pub session_service : & ' static AsyncMutex < SessionService > ,
2525
2626 // Linear transformations that are applied on top of the raw readings for each ADC and channel
@@ -31,7 +31,7 @@ impl<const ADC_COUNT: usize> PressureService<ADC_COUNT> {
3131 pub fn new (
3232 adc_service : & ' static AsyncMutex < AdcService < ADC_COUNT > > ,
3333 sd_card_service : & ' static AsyncMutex < SDCardService > ,
34- serial_service : & ' static AsyncMutex < SerialService > ,
34+ serial_service : & ' static AsyncMutex < UORSerial > ,
3535 session_service : & ' static AsyncMutex < SessionService > ,
3636 ) -> Self {
3737 Self {
0 commit comments