Skip to content

Commit 6848ea4

Browse files
bxparkscmaglie
authored andcommitted
Fix compiler warnings about ignored 'const' in EEPROM.h
1 parent 1db33d2 commit 6848ea4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: libraries/EEPROM/src/EEPROM.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ struct EERef{
4040

4141
//Access/read members.
4242
uint8_t operator*() const { return eeprom_read_byte( (uint8_t*) index ); }
43-
operator const uint8_t() const { return **this; }
43+
operator uint8_t() const { return **this; }
4444

4545
//Assignment/write members.
4646
EERef &operator=( const EERef &ref ) { return *this = *ref; }
@@ -89,7 +89,7 @@ struct EEPtr{
8989
EEPtr( const int index )
9090
: index( index ) {}
9191

92-
operator const int() const { return index; }
92+
operator int() const { return index; }
9393
EEPtr &operator=( int in ) { return index = in, *this; }
9494

9595
//Iterator functionality.
@@ -143,4 +143,4 @@ struct EEPROMClass{
143143
};
144144

145145
static EEPROMClass EEPROM;
146-
#endif
146+
#endif

0 commit comments

Comments
 (0)