feat(sync): remove synchronization method calls

This commit is contained in:
doryan 2025-05-22 21:58:45 +04:00
parent b72be2fc3b
commit b3aa8ea46a

View File

@ -110,7 +110,6 @@ where
}
fn write_bytes(&self, transmit_data: &mut RingBuffer<N>) {
self.sync_transmitter();
<Self as SoftSerialWriter<P, &mut RingBuffer<N>>>::write_byte(self, N as u8);
for _ in 0..N {
@ -131,7 +130,6 @@ where
}
fn read_bytes(&self, recieve_data: &mut RingBuffer<N>) {
self.sync_reciever();
let byte = <Self as SoftSerialReader<P, &mut RingBuffer<N>>>::read_byte(self);
if let Ok(len) = byte {