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 "splitflap_wrapper.h"
#include "McuUtility.h"
#include "McuShell.h"
#include "rs485.h"
#define RS_CMD_PREFIX "rs sendcmd SplitFlap "
#define BUF_SIZE 40
#define BUF_SIZE 50
/* moves all split flaps to the zero position
* 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 */
bool SplitFlap_Wrapper_MoveAllToZeroPosition(void){
char cmd[BUF_SIZE] = RS_CMD_PREFIX;
//McuUtility_strcat(cmd, sizeof cmd, "initAll");
//RS485_ParseCommand(cmd); TODO
unsigned char cmd[BUF_SIZE] = RS_CMD_PREFIX;
McuUtility_strcat(cmd, sizeof(cmd), "initAll");
McuShell_SendStr(buf, SHELL_GetStdio()->stdOut);
//old RS485_ParseCommand(cmd);
return true;
}

Loading…
Cancel
Save