mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-14 08:55:06 +01:00
various: forward declaration for "T" type used in EEPROM functions, necessary for non Arduino IDE
This commit is contained in:
parent
d39a438c4d
commit
1d6bd2ae86
@ -90,6 +90,10 @@ char ver[5] = "3.5";
|
||||
|
||||
// AVR Eeprom
|
||||
#include <EEPROM.h>
|
||||
// forward declarations for "T" (for non Arduino IDE)
|
||||
template <class T> int EEPROM_writeAnything(int ee, const T& value);
|
||||
template <class T> int EEPROM_readAnything(int ee, T& value);
|
||||
|
||||
template <class T> int EEPROM_writeAnything(int ee, const T& value)
|
||||
{
|
||||
const byte* p = (const byte*)(const void*)&value;
|
||||
|
Loading…
Reference in New Issue
Block a user