Fixed STK525 Dataflash driver using incorrect bit-shifting for Dataflash addresses...
[pub/lufa.git] / LUFA / Drivers / Board / STK525 / Dataflash.h
index db78a7b..d779f74 100644 (file)
                         */\r
                        static inline void Dataflash_SendAddressBytes(uint16_t PageAddress, const uint16_t BufferByte)\r
                        {       \r
-                               Dataflash_SendByte(PageAddress >> 5);\r
-                               Dataflash_SendByte((PageAddress << 3) | (BufferByte >> 8));\r
+                               Dataflash_SendByte(PageAddress >> 6);\r
+                               Dataflash_SendByte((PageAddress << 2) | (BufferByte >> 8));\r
                                Dataflash_SendByte(BufferByte);\r
                        }\r
                        \r