Skip to content

Commit

Permalink
increase packet timeout for bluetooth
Browse files Browse the repository at this point in the history
  • Loading branch information
rpasichnyk committed Sep 21, 2017
1 parent 7cc18a4 commit 73d52d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

typedef struct {
volatile unsigned char rx_state;
volatile unsigned char rx_timeout;
volatile unsigned short rx_timeout;
void(*send_func)(unsigned char *data, unsigned int len);
void(*process_func)(unsigned char *data, unsigned int len);
unsigned int payload_length;
Expand Down
2 changes: 1 addition & 1 deletion packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <stdint.h>

// Settings
#define PACKET_RX_TIMEOUT 2
#define PACKET_RX_TIMEOUT 1000
#define PACKET_HANDLERS 2
#define PACKET_MAX_PL_LEN 1024

Expand Down

0 comments on commit 73d52d3

Please sign in to comment.