Skip to content

Commit 4821aa4

Browse files
committed
Fix led_matrix example for string conversion
1 parent f5d9bed commit 4821aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/led_matrix/led_matrix.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void update_menu() {
4646
ledMatrix.setfont(FONT_5x7);
4747

4848
Menu const* menu = ms.get_current_menu();
49-
char* name = menu->get_selected()->get_name();
49+
const char* name = menu->get_selected()->get_name();
5050

5151
// Calculate indentation for center alignment
5252
int text_width = FONT_WIDTH * strlen(name);

0 commit comments

Comments
 (0)