Исправление выявленных ошибок #23

Merged
klassents merged 3 commits from v0.5.1_bugs_from_arduboy into v0.5.1 2025-05-28 12:55:20 +03:00
Showing only changes of commit a31b5a48c0 - Show all commits

View File

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