mirror of
				https://github.com/PSenfft/mb85rc.git
				synced 2025-11-04 07:44:10 +00:00 
			
		
		
		
	added missing self ref to sequential_read
This commit is contained in:
		
							parent
							
								
									1619d63e53
								
							
						
					
					
						commit
						6df4796084
					
				@ -1,6 +1,6 @@
 | 
			
		||||
#![no_std]
 | 
			
		||||
 | 
			
		||||
use core::{error::Error, result::Result};
 | 
			
		||||
use core::result::Result;
 | 
			
		||||
use embedded_hal::i2c::{I2c, SevenBitAddress};
 | 
			
		||||
 | 
			
		||||
const DEVICE_ADDRESS: u8 = 0b10100000;
 | 
			
		||||
@ -75,7 +75,11 @@ impl<T: I2c> MB85RC<T> {
 | 
			
		||||
    /// command. If the end of the memory address space is reached, the internal read
 | 
			
		||||
    /// address automatically rolls over to the first memory address (0x0000) and continues
 | 
			
		||||
    /// reading.
 | 
			
		||||
    pub fn sequential_read(memory_address: [u8; 2], buf: &mut [u8]) -> Result<usize, T::Error> {
 | 
			
		||||
    pub fn sequential_read(
 | 
			
		||||
        &mut self,
 | 
			
		||||
        memory_address: [u8; 2],
 | 
			
		||||
        buf: &mut [u8],
 | 
			
		||||
    ) -> Result<usize, T::Error> {
 | 
			
		||||
        todo!()
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user