Minor correction in copy to ram block
Increment offset with data_len instead of blocksize. Same type of change done elsewhere in this code.
@@ -102,7 +102,7 @@ impl<T> embedded_hal::blocking::spi::Write<u8> for Spim<T> where T: SpimExt
for i in 0..data_len{
buffer[i] = words[offset+i];
}
- offset += blocksize;
+ offset += data_len;
// setup spi dma tx buffer and 0 for read buffer length
self.do_spi_dma_transfer(buffer.as_ptr() as u32,data_len as u32,0,0,|_|{})?;
}
