mirror of
https://github.com/sanni/cartreader.git
synced 2024-12-29 06:21:55 +01:00
Merge pull request #40 from ramapcsx2/various
various: forward declaration for "T" type used in EEPROM functions
This commit is contained in:
commit
80e5a2ad81
@ -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