Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1db33d2 commit 6848ea4Copy full SHA for 6848ea4
libraries/EEPROM/src/EEPROM.h
@@ -40,7 +40,7 @@ struct EERef{
40
41
//Access/read members.
42
uint8_t operator*() const { return eeprom_read_byte( (uint8_t*) index ); }
43
- operator const uint8_t() const { return **this; }
+ operator uint8_t() const { return **this; }
44
45
//Assignment/write members.
46
EERef &operator=( const EERef &ref ) { return *this = *ref; }
@@ -89,7 +89,7 @@ struct EEPtr{
89
EEPtr( const int index )
90
: index( index ) {}
91
92
- operator const int() const { return index; }
+ operator int() const { return index; }
93
EEPtr &operator=( int in ) { return index = in, *this; }
94
95
//Iterator functionality.
@@ -143,4 +143,4 @@ struct EEPROMClass{
143
};
144
145
static EEPROMClass EEPROM;
146
-#endif
+#endif
0 commit comments