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

- исправление выявленных ошибок
- если используется не-void функция без return, появляется ошибка вместо предупреждения
Co-authored-by: KLASSENTS <klassen@elron.tech>
Co-committed-by: KLASSENTS <klassen@elron.tech>
This commit was merged in pull request #23.
This commit is contained in:
klassents authored and klassents committed 2025-05-28 12:55:19 +03:00
1 parent ae811a9847
commit 2cb29ab673
3 files changed
+17 -19

No files matched your search

+1 -1
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