sparkfun / SparkFun_SSD1320_OLED_Arduino_Library

Display graphics and text on a flexible grayscale display
10 stars 5 forks source link

Set Functions Should Set Width and Height Parameters #3

Closed xsk8rat closed 6 years ago

xsk8rat commented 6 years ago

Small change to prevent compile time errors. These two functions (setDisplayHeight and setDisplayWidth) were declared as void, but were returning values instead of setting them. Typos really.

New versions:

void SSD1320::setDisplayWidth(uint16_t W) { _displayWidth = W; }

void SSD1320::setDisplayHeight(uint16_t H) { _displayHeight = H; }

nseidle commented 6 years ago

Good catch! Can you send me a PR?

nseidle commented 6 years ago

Pulled in to v1.0.4 https://github.com/sparkfun/SparkFun_SSD1320_OLED_Arduino_Library/releases/tag/v1.0.4

nseidle commented 6 years ago

Thanks for your help!