sensor_bulk: Change maximum data size from 52 to 51 bytes

Reduce the maximum data size from 52 bytes to 51 bytes.  This will
enable support for 2-byte response ids.

This change would alter the behavior of the ldc1612 sensor support.
Force an ldc1612 command name change so that users are alerted that
they must rebuild the micro-controller code upon update of the host
code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2024-06-05 20:20:24 -04:00
parent 17c645f000
commit 36b8831c7e
4 changed files with 5 additions and 5 deletions

View File

@@ -210,7 +210,7 @@ command_query_ldc1612(uint32_t *args)
DECL_COMMAND(command_query_ldc1612, "query_ldc1612 oid=%c rest_ticks=%u");
void
command_query_ldc1612_status(uint32_t *args)
command_query_status_ldc1612(uint32_t *args)
{
struct ldc1612 *ld = oid_lookup(args[0], command_config_ldc1612);
@@ -232,7 +232,7 @@ command_query_ldc1612_status(uint32_t *args)
uint32_t fifo = status & 0x08 ? BYTES_PER_SAMPLE : 0;
sensor_bulk_status(&ld->sb, args[0], time1, time2-time1, fifo);
}
DECL_COMMAND(command_query_ldc1612_status, "query_ldc1612_status oid=%c");
DECL_COMMAND(command_query_status_ldc1612, "query_status_ldc1612 oid=%c");
void
ldc1612_task(void)