projects
/
fw
/
openalt
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
snapshot of my first "working" version from turn-on of Altus Metrum v0.1
[fw/openalt]
/
i2c
/
eeprom.c
diff --git
a/i2c/eeprom.c
b/i2c/eeprom.c
index d537508e3dd90de470c5822b1e0f9b90cc32a092..8a89298c9d097912b1771c0ff370a6cb960d047a 100644
(file)
--- a/
i2c/eeprom.c
+++ b/
i2c/eeprom.c
@@
-28,9
+28,15
@@
int eepromSetAddress (U32 address)
address %= EEPROM_SIZE;
if ((rwAddress = address) >= 65536)
+#ifdef FC1025
+ deviceAddress |= 0x08;
+ else
+ deviceAddress &= ~0x08;
+#else
deviceAddress |= 0x02;
else
deviceAddress &= ~0x02;
+#endif
return r;
}