PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)

Revision:
28:958b71c4b92a
Parent:
6:72f87b7c7400
--- a/POKITTO_HW/PokittoEEPROM.h	Mon Jan 01 10:22:02 2018 +0000
+++ b/POKITTO_HW/PokittoEEPROM.h	Fri Jan 05 02:19:51 2018 +0000
@@ -38,12 +38,12 @@
         : index( index )                 {}
 
     //Access/read members.
-    uint8_t operator*() const            { return eeprom_read_byte( (uint8_t*) index ); }
+    uint8_t operator*() const            { return eeprom_read_byte( (uint16_t*) index ); }
     operator uint8_t() const       { return **this; }
 
     //Assignment/write members.
     EERef &operator=( const EERef &ref ) { return *this = *ref; }
-    EERef &operator=( uint8_t in )       { return eeprom_write_byte( (uint8_t*) index, in ), *this;  }
+    EERef &operator=( uint8_t in )       { return eeprom_write_byte( (uint16_t*) index, in ), *this;  }
     EERef &operator +=( uint8_t in )     { return *this = **this + in; }
     EERef &operator -=( uint8_t in )     { return *this = **this - in; }
     EERef &operator *=( uint8_t in )     { return *this = **this * in; }