прототип функции put теперь такой же, как у оригинальной arduino

This commit is contained in:
KLASSENTS 2025-05-28 14:11:16 +07:00
parent 661224d260
commit a31b5a48c0

View File

@ -94,7 +94,7 @@ struct EEPROMClass{
uint16_t length() { return (uint16_t)EEPROM_LENGHT; } uint16_t length() { return (uint16_t)EEPROM_LENGHT; }
template< typename T > template< typename T >
T &put(int idx, T &data) const T &put(int idx, const T &data)
{ {
void* dataPointer = (void*)&data; void* dataPointer = (void*)&data;
// check if idx is valid // check if idx is valid