cfg fixes, this time testing against both possible targets

This commit is contained in:
bunnie 2023-09-15 19:30:55 +08:00
parent 24cfa557af
commit f49cab6ca7

View file

@ -248,11 +248,13 @@ impl OutputWriter {
writelen writelen
} }
#[cfg(feature="cramium-fpga")] #[cfg(feature="cramium-fpga")]
{
for c in buf { for c in buf {
self.putc(*c) self.putc(*c)
} }
buf.len() buf.len()
} }
}
pub fn write_all(&mut self, buf: &[u8]) -> core::result::Result<usize, ()> { pub fn write_all(&mut self, buf: &[u8]) -> core::result::Result<usize, ()> {
Ok(self.write(buf)) Ok(self.write(buf))