diff options
author | Brian Park <brian@xparks.net> | 2018-08-29 23:18:10 -0700 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2018-09-03 17:27:58 +0200 |
commit | 6848ea443cfb118d01ae317c0e676c1629199fdb (patch) | |
tree | 3161021205c5c116eba1d309359ec02b7b6f6cbd /libraries/EEPROM | |
parent | 1db33d24b7ae99e71b9843bc6301f5b932df2aa3 (diff) |
Fix compiler warnings about ignored 'const' in EEPROM.h
Diffstat (limited to 'libraries/EEPROM')
-rw-r--r-- | libraries/EEPROM/src/EEPROM.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libraries/EEPROM/src/EEPROM.h b/libraries/EEPROM/src/EEPROM.h index cde75db..c8ec271 100644 --- a/libraries/EEPROM/src/EEPROM.h +++ b/libraries/EEPROM/src/EEPROM.h @@ -40,7 +40,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; } @@ -89,7 +89,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. @@ -143,4 +143,4 @@ struct EEPROMClass{ }; static EEPROMClass EEPROM; -#endif
\ No newline at end of file +#endif |