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

[CMD][EEPROM] Move environment var names to defines

parent a408ae7f
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,9 @@
#define DEBUG 1
#define ENV_PANEL_ID "devconf_panel_id"
#define ENV_TOUCH_ID "devconf_touch_id"
/*
* Command Functions
*/
......@@ -38,7 +41,7 @@ static void do_seco_eeprom_manager_get(int argc, char *const *argv[])
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_ulong(ENV_PANEL_ID, panel_id);
env_set("current_overlay_type", "panel");
env_set_ulong("current_overlay_id", panel_id);
}
......@@ -50,7 +53,7 @@ static void do_seco_eeprom_manager_get(int argc, char *const *argv[])
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_ulong(ENV_TOUCH_ID, touch_id);
env_set("current_overlay_type", "touch");
env_set_ulong("current_overlay_id", touch_id);
}
......
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