Skip to content
Snippets Groups Projects
Commit a408ae7f authored by Tobias Kahlki's avatar Tobias Kahlki Committed by Jonas Höppner
Browse files

[CMD][EEPROM] Write panel_id and touch_id to ENV

parent 900e69d0
No related branches found
No related tags found
No related merge requests found
......@@ -35,8 +35,28 @@ static void do_seco_eeprom_manager_get(int argc, char *const *argv[])
switch(uid)
{
case UID_PANEL_ID:
seco_eeprom_get_panel_id(&panel_id);
if (seco_eeprom_get_panel_id(&panel_id) == 0 && panel_id != 0)
{
panel_id -= '0';
env_set_ulong("devconf_panel_id", panel_id);
env_set("current_overlay_type", "panel");
env_set_ulong("current_overlay_id", panel_id);
}
#if DEBUG
printf("panel_id: %d\n", panel_id);
#endif
break;
case UID_TOUCH_ID:
if(seco_eeprom_get_touch_id(&touch_id) == 0 && touch_id != 0)
{
touch_id -= '0';
env_set_ulong("devconf_touch_id", touch_id);
env_set("current_overlay_type", "touch");
env_set_ulong("current_overlay_id", touch_id);
}
#if DEBUG
printf("touch_id: %d\n", touch_id);
#endif
break;
default:
printf("Error: Unknown/Unsupported UID \"%s\"\n", (*argv)[4]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment