Skip to content

Commit

Permalink
Merge branch 'openshwprojects:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
valeklubomir committed Oct 19, 2022
2 parents 8e9262c + cdd0fc2 commit 25b224e
Show file tree
Hide file tree
Showing 37 changed files with 12,019 additions and 4 deletions.
14 changes: 14 additions & 0 deletions src/cmnds/cmd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include "../obk_config.h"
#include <ctype.h>
#include "cmd_local.h"
#include "../driver/drv_ir.h"

#ifdef BK_LITTLEFS
#include "../littlefs/our_lfs.h"
#endif
Expand All @@ -30,6 +32,17 @@ static int generateHashValue(const char *fname) {

command_t *g_commands[HASH_SIZE] = { NULL };

static int CMD_SimonTest(const void *context, const char *cmd, const char *args, int cmdFlags){
ADDLOG_INFO(LOG_FEATURE_CMD, "CMD_SimonTest: ir test routine");

#ifdef PLATFORM_BK7231T
testmehere();
#endif


return 1;
}

static int CMD_Restart(const void *context, const char *cmd, const char *args, int cmdFlags){
int delaySeconds;

Expand Down Expand Up @@ -58,6 +71,7 @@ static int CMD_ClearConfig(const void *context, const char *cmd, const char *arg
void CMD_Init() {
CMD_RegisterCommand("restart", "", CMD_Restart, "Reboots the module", NULL);
CMD_RegisterCommand("clearConfig", "", CMD_ClearConfig, "Clears all config", NULL);
CMD_RegisterCommand("simonirtest", "", CMD_SimonTest, "Simons Special Test", NULL);
if(CFG_HasFlag(OBK_FLAG_CMD_ENABLETCPRAWPUTTYSERVER)) {
CMD_StartTCPCommandLine();
}
Expand Down

0 comments on commit 25b224e

Please sign in to comment.