From 31bf11630678de68b83ad5d60b6d89f968534c00 Mon Sep 17 00:00:00 2001 From: nirge Date: Thu, 18 Jan 2024 16:09:55 +0200 Subject: [PATCH] Removed warnings --- EEPROM.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EEPROM.h b/EEPROM.h index 236ec7a..5600f61 100644 --- a/EEPROM.h +++ b/EEPROM.h @@ -47,7 +47,7 @@ struct EERef{ //Access/read members. uint8_t operator*() const { return eeprom_read_byte( (uint8_t*) index ); } - operator const uint8_t() const { return **this; } + operator uint8_t() const { return **this; } //Assignment/write members. EERef &operator=( const EERef &ref ) { return *this = *ref; } @@ -96,7 +96,7 @@ struct EEPtr{ EEPtr( const int index ) : index( index ) {} - operator const int() const { return index; } + operator int() const { return index; } EEPtr &operator=( int in ) { return index = in, *this; } //Iterator functionality.