1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 21:01:25 +01:00

Add m_ to variables

This commit is contained in:
Neil McKechnie 2021-02-21 12:26:31 +00:00
parent c20e234d43
commit b36db29edb
2 changed files with 6 additions and 6 deletions

View File

@ -73,8 +73,8 @@ void SSD1306Ascii::setCursor(uint8_t col, uint8_t row) {
//------------------------------------------------------------------------------
void SSD1306Ascii::setFont(const uint8_t* font) {
m_font = font;
fontFirstChar = readFontByte(m_font + FONT_FIRST_CHAR);
fontCharCount = readFontByte(m_font + FONT_CHAR_COUNT);
m_fontFirstChar = readFontByte(m_font + FONT_FIRST_CHAR);
m_fontCharCount = readFontByte(m_font + FONT_CHAR_COUNT);
}
//------------------------------------------------------------------------------
void SSD1306Ascii::setRow(uint8_t row) {
@ -104,8 +104,8 @@ size_t SSD1306Ascii::write(uint8_t ch) {
}
const uint8_t* base = m_font + FONT_WIDTH_TABLE;
if (ch < fontFirstChar || ch >= (fontFirstChar + fontCharCount)) return 0;
ch -= fontFirstChar;
if (ch < m_fontFirstChar || ch >= (m_fontFirstChar + m_fontCharCount)) return 0;
ch -= m_fontFirstChar;
base += fontWidth * ch;
for (uint8_t c = 0; c < fontWidth; c++) {
uint8_t b = readFontByte(base + c);

View File

@ -200,8 +200,8 @@ class SSD1306Ascii : public Print {
const int fontWidth = 5;
const int fontHeight = 7;
const uint8_t letterSpacing = 1;
uint8_t fontFirstChar;
uint8_t fontCharCount;
uint8_t m_fontFirstChar;
uint8_t m_fontCharCount;
};