Browse Source

Fix memory overwrite.

Marek Bel 6 years ago
parent
commit
ea88dea432
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Firmware/menu.cpp

+ 1 - 1
Firmware/menu.cpp

@@ -342,7 +342,7 @@ static void _menu_edit_P(void)
 	}
 	if (LCD_CLICKED)
 	{
-		*((int*)(_md->editValue)) = (int)lcd_encoder;
+		*((T)(_md->editValue)) = lcd_encoder;
 		menu_back_no_reset();
 	}
 }