Skip to content

Commit 3da7935

Browse files
authored
Merge pull request #278 from LeeLeahy2/icons
Move the icon width and height to above the icon data, add const
2 parents 255bb76 + 50922b4 commit 3da7935

File tree

2 files changed

+92
-93
lines changed

2 files changed

+92
-93
lines changed

Firmware/RTK_Surveyor/Display.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2301,9 +2301,9 @@ void paintResets()
23012301
}
23022302

23032303
//Wrapper to avoid needing to pass width/height data twice
2304-
void displayBitmap(uint8_t x, uint8_t y, uint8_t imageWidth, uint8_t imageHeight, uint8_t *imageData)
2304+
void displayBitmap(uint8_t x, uint8_t y, uint8_t imageWidth, uint8_t imageHeight, const uint8_t *imageData)
23052305
{
2306-
oled.bitmap(x, y, x + imageWidth, y + imageHeight, imageData, imageWidth, imageHeight);
2306+
oled.bitmap(x, y, x + imageWidth, y + imageHeight, (uint8_t *)imageData, imageWidth, imageHeight);
23072307
}
23082308

23092309
void displayKeysUpdated()

0 commit comments

Comments
 (0)