Skip to content

Commit

Permalink
add(simpap): increase message size
Browse files Browse the repository at this point in the history
  • Loading branch information
alberand committed Jun 30, 2020
1 parent 3ccfc05 commit 47f16ff
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/simpap/simpap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@

#include <stdint.h>

#define MAX_SIZE 20
#define MAX_SIZE 50
#define SIMPAP_OVERHEAD 4
#define BUFFER_SIZE (MAX_SIZE + SIMPAP_OVERHEAD)

struct simpap {
uint8_t buffer[BUFFER_SIZE];
struct simpap
{
uint8_t buffer[BUFFER_SIZE];
uint8_t index;
bool overrun;

Expand All @@ -19,7 +20,7 @@ struct simpap {
bool finished;

// output
uint8_t data[MAX_SIZE];
uint8_t data[MAX_SIZE];
};

uint16_t crc16(uint8_t* data_p, uint8_t length);
Expand Down

0 comments on commit 47f16ff

Please sign in to comment.