diff options
author | Keith Packard <keithp@keithp.com> | 2017-06-13 10:34:03 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-06-13 10:34:03 -0700 |
commit | cd8b22bef0a88ed6881036b4c6718a4e33c55d41 (patch) | |
tree | 9ba7c66563f878eccefe995aac78c5995f42c460 /src/drivers/ao_rn4678.h | |
parent | 172d6cec981b50d4d5ff0f3d3bbd4377d55f57c8 (diff) |
altos: Add timeout to RN4678 status message code
If we see the start of an RN4678 status message, but then output
pauses, assume that this isn't the start of a status message and flush
the pending data.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_rn4678.h')
-rw-r--r-- | src/drivers/ao_rn4678.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/drivers/ao_rn4678.h b/src/drivers/ao_rn4678.h index d6fea23a..a4dcea38 100644 --- a/src/drivers/ao_rn4678.h +++ b/src/drivers/ao_rn4678.h @@ -56,7 +56,7 @@ */ -#define AO_RN_REBOOT_MSG "%REBOOT%" +#define AO_RN_REBOOT_MSG "REBOOT" #define AO_RN_CMD_TIMEOUT AO_MS_TO_TICKS(200) @@ -67,11 +67,14 @@ #define AO_RN_SET_NAME_CMD "SN," #define AO_RN_GET_NAME_CMD "GN" -#define AO_RN_SET_STATUS_STRING "SO," +#define AO_RN_SET_STATUS_STRING "so," #define AO_RN_STATUS_STRING_DISABLE " " +#define AO_RN_STATUS_STRING_ENABLE "%,%" #define AO_RN_REBOOT_CMD "R,1" +#define AO_RN_VERSION_CMD "V" + #define AO_RN_TIMEOUT -1 #define AO_RN_ERROR 0 #define AO_RN_OK 1 |