From 0c50506d8170e7e7ac5ae9e019f3ca4b8584e786 Mon Sep 17 00:00:00 2001 From: Dominik Loidolt <dominik.loidolt@univie.ac.at> Date: Tue, 16 Nov 2021 14:49:33 +0100 Subject: [PATCH] fix some comments and coding style stuff --- lib/decmp.c | 2 +- lib/rdcu_rmap.c | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/decmp.c b/lib/decmp.c index 1138772..e735c3d 100644 --- a/lib/decmp.c +++ b/lib/decmp.c @@ -57,7 +57,7 @@ static int de_raw_pre_process(uint8_t cmp_mode_used) /** * @brief model decompression pre-processing * - * @note + * @note change the data_buf in-place * * @param data_buf pointer to the data to process * @param model_buf pointer to the model of the data to process diff --git a/lib/rdcu_rmap.c b/lib/rdcu_rmap.c index e25241c..131cea0 100644 --- a/lib/rdcu_rmap.c +++ b/lib/rdcu_rmap.c @@ -261,7 +261,7 @@ static int rdcu_process_rx(void) cnt++; - if (0) + if ((0)) rmap_parse_pkt(spw_pckt); /* convert format */ @@ -353,7 +353,7 @@ int rdcu_submit_tx(const uint8_t *cmd, int cmd_size, if (!rmap_tx) return -1; - if (0) + if ((0)) printf("Transmitting RMAP command\n"); if (rmap_tx(cmd, cmd_size, dpath_len, data, data_size)) { @@ -530,8 +530,8 @@ int rdcu_sync_data(int (*fn)(uint16_t trans_id, uint8_t *cmd, slot = trans_log_grab_slot(data); if (slot < 0) { - if (0) - printf("Error: all slots busy!\n"); + if ((0)) + printf("Error: all slots busy!\n"); return 1; } @@ -792,10 +792,10 @@ void rdcu_rmap_reset_log(void) * * @param mtu the maximum data transfer size per unit * - * @param rmap_tx a function pointer to transmit an rmap command - * @param rmap_rx function pointer to receive an rmap command + * @param tx a function pointer to transmit an rmap command + * @param rx function pointer to receive an rmap command * - * @note rmap_tx is expected to return 0 on success + * @note tx is expected to return 0 on success * rmap_rx is expected to return the number of packet bytes * * @returns 0 on success, otherwise error -- GitLab