From 4a85696f19437bbffaccd8fcdd185f02e1f57420 Mon Sep 17 00:00:00 2001 From: PrimmR Date: Tue, 12 Sep 2023 17:37:45 +0100 Subject: [PATCH] Updated EEPROMBYTECHECKLESS documentation --- arduboy-rust/src/library/eeprom.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arduboy-rust/src/library/eeprom.rs b/arduboy-rust/src/library/eeprom.rs index ae0d8e6..6c2d644 100644 --- a/arduboy-rust/src/library/eeprom.rs +++ b/arduboy-rust/src/library/eeprom.rs @@ -139,6 +139,8 @@ impl EEPROMBYTE { } } +///Use this struct to store and read single bytes to/from eeprom memory without using a check digit. +///Unlike the other eeprom structs, this does not need to be initialised. pub struct EEPROMBYTECHECKLESS { idx: i16, } @@ -151,8 +153,6 @@ impl EEPROMBYTECHECKLESS { idx: EEPROM_STORAGE_SPACE_START + idx, } } - pub fn init(&self) { - } pub fn read(&self) -> u8 { unsafe { arduboy_eeprom_read_raw(self.idx) } }