aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pru/main.c2
-rw-r--r--src/pru/pru0.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/pru/main.c b/src/pru/main.c
index a95bde1b..1b54e42a 100644
--- a/src/pru/main.c
+++ b/src/pru/main.c
@@ -166,8 +166,6 @@ shutdown_handler(uint32_t *args)
{
shutdown("Request from PRU0");
}
-
-// Empty message (for ack/nak transmission)
const struct command_parser shutdown_request = {
.func = shutdown_handler,
};
diff --git a/src/pru/pru0.c b/src/pru/pru0.c
index c6a63cb9..a2c3ec59 100644
--- a/src/pru/pru0.c
+++ b/src/pru/pru0.c
@@ -119,7 +119,7 @@ check_can_read(void)
// Parse data into message blocks
for (;;) {
- uint8_t pop_count, msglen = len > 64 ? 64 : len;
+ uint8_t pop_count, msglen = len > MESSAGE_MAX ? MESSAGE_MAX : len;
int8_t ret = command_find_block(p, msglen, &pop_count);
if (!ret)
break;