changeset 141:880379afa4b3 main

Valid messages can be as short as one byte.
author Bob Cook <bob@bobcookdev.com>
date Mon, 21 May 2012 14:48:41 -0700
parents c2a99aad2e9b
children cf9723976178
files main/packages/avr/rfcomm/rfcomm_rx.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main/packages/avr/rfcomm/rfcomm_rx.cpp	Sun May 20 16:25:54 2012 -0700
+++ b/main/packages/avr/rfcomm/rfcomm_rx.cpp	Mon May 21 14:48:41 2012 -0700
@@ -243,7 +243,7 @@
             break;
 
         case rx_state_recv_length:
-            if ( rx_byte < 4 || rx_byte > PRJ_RFCOMM_MAX_MESSAGE_SIZE )
+            if ( rx_byte < 1 || rx_byte > PRJ_RFCOMM_MAX_MESSAGE_SIZE )
             {
                 // bogus message: too short or too long; reject
                 g_rx_state = rx_state_pending_start;