Исправление выявленных ошибок
- исправление выявленных ошибок - если используется не-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:
1 parent
ae811a9847
commit
2cb29ab673
3 files changed
+17
-19
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user