zwischenstand
This commit is contained in:
@@ -13,8 +13,8 @@ void ble_rx_cb(const uint8_t *data, uint16_t len)
|
||||
uint8_t *buf;
|
||||
|
||||
/* 1. Länge prüfen (darf SLAB_BLOCK_SIZE = 256 nicht überschreiten) */
|
||||
if (len > 256) {
|
||||
LOG_ERR("Received data too large for proto buf (%u bytes)", len);
|
||||
if (len > CONFIG_BUZZ_PROTO_SLAB_SIZE) {
|
||||
LOG_ERR("Received data too large for proto buf (%u > %u)", len, CONFIG_BUZZ_PROTO_SLAB_SIZE);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user