Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

Commit

Permalink
adjusted count of commands
Browse files Browse the repository at this point in the history
  • Loading branch information
timm authored and timm committed Mar 29, 2013
1 parent 1542a0e commit a5a6798
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions firmware/Interpreter.c
Expand Up @@ -112,7 +112,7 @@ typedef struct key_special_mode
byte mode;
} key_special_mode;

#define COUNT_COMMANDS 7
#define COUNT_COMMANDS 41

const key_value_mode command_list[] = {
{command_off, DALI_IMMEDIATE_OFF, _MODE_SIMPLE_},
Expand Down Expand Up @@ -160,7 +160,7 @@ const key_value_mode command_list[] = {
{command_query_random_address_l, DALI_QUERY_RANDOM_ADDRESS_L, _MODE_QUERY_},
};

#define COUNT_COMMANDS_WITH_PARAM 1
#define COUNT_COMMANDS_WITH_PARAM 6

const key_value_mode command_with_param_list[] = {
{command_goto_scene, DALI_GO_TO_SCENE, _MODE_SIMPLE_},
Expand All @@ -171,7 +171,7 @@ const key_value_mode command_with_param_list[] = {
{command_query_scene_level, DALI_QUERY_SCENE_LEVEL, _MODE_QUERY_}
};

#define COUNT_SPECIAL_COMMANDS 2
#define COUNT_SPECIAL_COMMANDS 14

const key_special_mode special_command_list[] = {
{command_initialize, INITIALIZE, _MODE_REPEAT_TWICE_},
Expand All @@ -190,10 +190,6 @@ const key_special_mode special_command_list[] = {
{command_enable_device_type, ENABLE_DEVICE_TYPE, _MODE_SIMPLE_}
};





inline char nibble_to_ascii(uint8_t nibble)
{
nibble = nibble & 0x0F;
Expand Down

0 comments on commit a5a6798

Please sign in to comment.