1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Displayport tidy

This commit is contained in:
Martin Budden 2017-06-28 21:21:29 +01:00
parent c1576cdba6
commit 1c7f574a55
5 changed files with 23 additions and 9 deletions

View file

@ -56,7 +56,7 @@ static int oledScreenSize(const displayPort_t *displayPort)
return displayPort->rows * displayPort->cols;
}
static int oledWrite(displayPort_t *displayPort, uint8_t x, uint8_t y, const char *s)
static int oledWriteString(displayPort_t *displayPort, uint8_t x, uint8_t y, const char *s)
{
i2c_OLED_set_xy(displayPort->device, x, y);
i2c_OLED_send_string(displayPort->device, s);
@ -99,7 +99,7 @@ static const displayPortVTable_t oledVTable = {
.clearScreen = oledClearScreen,
.drawScreen = oledDrawScreen,
.screenSize = oledScreenSize,
.write = oledWrite,
.writeString = oledWriteString,
.writeChar = oledWriteChar,
.isTransferInProgress = oledIsTransferInProgress,
.heartbeat = oledHeartbeat,