We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32dfdc6 commit bfb6490Copy full SHA for bfb6490
drivers/ltp305/ltp305.cpp
@@ -64,8 +64,8 @@ namespace pimoroni {
64
}
65
66
void LTP305::set_character(uint8_t x, uint16_t ch) {
67
- uint8_t *data = nullptr;
68
- for(auto c : dotfont) {
+ const uint8_t *data = nullptr;
+ for(const auto& c : dotfont) {
69
if(c.code == ch) {
70
data = &c.data[0];
71
break;
@@ -128,4 +128,4 @@ namespace pimoroni {
128
i2c->reg_write_uint8(address, CMD_BRIGHTNESS, brightness);
129
i2c->reg_write_uint8(address, CMD_UPDATE, 0x01);
130
131
-}
+}
0 commit comments