Add CLONE command to button.

Signed-off-by: Michal Demin <michaldemin@gmail.com>
This commit is contained in:
Michal Demin
2017-06-15 22:11:38 +02:00
parent c9ebec90f4
commit 80ddd96ac5
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -4,6 +4,7 @@
#include "Settings.h"
#include "Memory.h"
#include "Map.h"
#include "Terminal/CommandLine.h"
#include "Application/Application.h"
#define BUTTON_PORT PORTA
@@ -27,6 +28,7 @@ static const MapEntryType PROGMEM ButtonActionMap[] = {
{ .Id = BUTTON_ACTION_RECALL_MEM, .Text = "RECALL_MEM" },
{ .Id = BUTTON_ACTION_TOGGLE_FIELD, .Text = "TOGGLE_FIELD" },
{ .Id = BUTTON_ACTION_STORE_LOG, .Text = "STORE_LOG" },
{ .Id = BUTTON_ACTION_CLONE, .Text = "CLONE" },
};
static void ExecuteButtonAction(ButtonActionEnum ButtonAction)
@@ -180,6 +182,11 @@ static void ExecuteButtonAction(ButtonActionEnum ButtonAction)
break;
}
case BUTTON_ACTION_CLONE:
{
CommandExecute("CLONE");
break;
}
default:
break;
+1
View File
@@ -32,6 +32,7 @@ typedef enum {
BUTTON_ACTION_RECALL_MEM,
BUTTON_ACTION_TOGGLE_FIELD,
BUTTON_ACTION_STORE_LOG,
BUTTON_ACTION_CLONE,
/* This has to be last element */
BUTTON_ACTION_COUNT