Fix compile error

This commit is contained in:
inmarket 2013-10-18 16:43:09 +10:00
parent c4ae7fd6c8
commit 66d2d27967

View File

@ -143,7 +143,7 @@ static inline void busmode8(GDisplay *g) {
static inline void write_index(GDisplay *g, uint8_t index) { static inline void write_index(GDisplay *g, uint8_t index) {
(void) g; (void) g;
CLR_DATA; CLR_DATA;
SPI1->DR = cmd; SPI1->DR = index;
while(((SPI1->SR & SPI_SR_TXE) == 0) || ((SPI1->SR & SPI_SR_BSY) != 0)); while(((SPI1->SR & SPI_SR_TXE) == 0) || ((SPI1->SR & SPI_SR_BSY) != 0));
SET_DATA; SET_DATA;
} }