update splitflap wrapper, not compiled!

main
Arnold Jonas jarnold 4 years ago
parent 1aa3a601d7
commit 33e72f0348
  1. 10
      ADIS_ESP32_Eclipse/main/splitflap_wrapper.c

@ -9,19 +9,21 @@
#include <stdbool.h> #include <stdbool.h>
#include "splitflap_wrapper.h" #include "splitflap_wrapper.h"
#include "McuUtility.h" #include "McuUtility.h"
#include "McuShell.h"
#include "rs485.h" #include "rs485.h"
#define RS_CMD_PREFIX "rs sendcmd SplitFlap " #define RS_CMD_PREFIX "rs sendcmd SplitFlap "
#define BUF_SIZE 40 #define BUF_SIZE 50
/* moves all split flaps to the zero position /* moves all split flaps to the zero position
* After a timeout the initializtion is cancelled and the return value is false * After a timeout the initializtion is cancelled and the return value is false
* If all splitflaps report to be initialized before the timeout, the return value is true */ * If all splitflaps report to be initialized before the timeout, the return value is true */
bool SplitFlap_Wrapper_MoveAllToZeroPosition(void){ bool SplitFlap_Wrapper_MoveAllToZeroPosition(void){
char cmd[BUF_SIZE] = RS_CMD_PREFIX; unsigned char cmd[BUF_SIZE] = RS_CMD_PREFIX;
//McuUtility_strcat(cmd, sizeof cmd, "initAll"); McuUtility_strcat(cmd, sizeof(cmd), "initAll");
//RS485_ParseCommand(cmd); TODO McuShell_SendStr(buf, SHELL_GetStdio()->stdOut);
//old RS485_ParseCommand(cmd);
return true; return true;
} }

Loading…
Cancel
Save