sosandroid / FRAM_MB85RC_I2C

Arduino library for I2C FRAM - Fujitsu MB85RC & Cypress FM24, CY15B
Other
56 stars 21 forks source link

1MB device not recognized #13

Closed lmwilco1 closed 6 years ago

lmwilco1 commented 6 years ago

I have a Fijitsu MB85RC1MT device soldered to the Adafruit board. The checkDevice code fails, it calls getDeviceIDs and the FRAM is identified correctly but the maxaddress is set to 65536 but the maxadress variable is a uint16_t so the value is actually set to 0 which results in checkDevice failing. In order to get it to work I changed the #define MAXADDRESS_1024 65536 to 65535. THe 512 device probably has the same issue.

sosandroid commented 6 years ago

Thanks for the feedback. I'll fix asap

sosandroid commented 6 years ago

Fixed