Skip to content

Commit 553f851

Browse files
committed
Fixes before release.
1 parent 1bc405d commit 553f851

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

examples/avr/analogJoystick1306Ascii/analogJoystick1306Ascii.emf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
},
173173
{
174174
"name": "TITLE_FONT",
175-
"latestValue": "Arial14",
175+
"latestValue": "System5x7",
176176
"subsystem": "DISPLAY"
177177
},
178178
{

examples/avr/analogJoystick1306Ascii/analogJoystick1306Ascii_menu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
const PROGMEM ConnectorLocalInfo applicationInfo = { "Space Junk", "5049a016-0d7e-4004-a183-cabe4e9cf6b8" };
1616
AvrEeprom glAvrRom;
1717
SSD1306AsciiAvrI2c gfx;
18-
SSD1306AsciiRenderer renderer(20, Arial14, System5x7);
18+
SSD1306AsciiRenderer renderer(20, System5x7, System5x7);
1919
MultiIoAbstraction joystickMultiIo(200);
2020
AnalogJoystickToButtons joystickIoXAxis(internalAnalogIo(), A1, 0.5);
2121

examples/avr/analogJoystick1306Ascii/ssd1306asciiRenderer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ void SSD1306AsciiRenderer::renderMenuItem(uint8_t row, MenuItem* item) {
148148

149149
int offs;
150150
if (item->getMenuType() == MENUTYPE_BACK_VALUE) {
151-
buffer[0] = item->isActive() ? (char)backChar : ' ';
151+
buffer[0] = item == activeItem ? (char)backChar : ' ';
152152
buffer[1] = (char)backChar;
153153
offs = 2;
154154
}
155155
else {
156-
buffer[0] = item->isEditing() ? editChar : (item->isActive() ? forwardChar : ' ');
156+
buffer[0] = char(item == menuMgr.getCurrentEditor() ? editChar : (item == activeItem ? forwardChar : ' '));
157157
offs = 1;
158158
}
159159
uint8_t finalPos = item->copyNameToBuffer(buffer, offs, bufferSize);
@@ -177,7 +177,7 @@ void SSD1306AsciiRenderer::renderMenuItem(uint8_t row, MenuItem* item) {
177177
int cpy = (bufferSize - count) - 1;
178178

179179
auto hints = menuMgr.getEditorHints();
180-
if(menuMgr.getCurrentEditor() && hints.getEditorRenderingType() != CurrentEditorRenderingHints::EDITOR_REGULAR && item->isEditing()) {
180+
if(menuMgr.getCurrentEditor() && hints.getEditorRenderingType() != CurrentEditorRenderingHints::EDITOR_REGULAR && item==menuMgr.getCurrentEditor()) {
181181
int startIndex = min(count, hints.getStartIndex());
182182
int endIndex = min(count, hints.getEndIndex());
183183
Serial.print("0");

0 commit comments

Comments
 (0)