Skip to content
Snippets Groups Projects
Commit 0c50506d authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

fix some comments and coding style stuff

parent ccd4519e
No related branches found
No related tags found
1 merge request!2added feature to guess the compression configuration
...@@ -57,7 +57,7 @@ static int de_raw_pre_process(uint8_t cmp_mode_used) ...@@ -57,7 +57,7 @@ static int de_raw_pre_process(uint8_t cmp_mode_used)
/** /**
* @brief model decompression pre-processing * @brief model decompression pre-processing
* *
* @note * @note change the data_buf in-place
* *
* @param data_buf pointer to the data to process * @param data_buf pointer to the data to process
* @param model_buf pointer to the model of the data to process * @param model_buf pointer to the model of the data to process
......
...@@ -261,7 +261,7 @@ static int rdcu_process_rx(void) ...@@ -261,7 +261,7 @@ static int rdcu_process_rx(void)
cnt++; cnt++;
if (0) if ((0))
rmap_parse_pkt(spw_pckt); rmap_parse_pkt(spw_pckt);
/* convert format */ /* convert format */
...@@ -353,7 +353,7 @@ int rdcu_submit_tx(const uint8_t *cmd, int cmd_size, ...@@ -353,7 +353,7 @@ int rdcu_submit_tx(const uint8_t *cmd, int cmd_size,
if (!rmap_tx) if (!rmap_tx)
return -1; return -1;
if (0) if ((0))
printf("Transmitting RMAP command\n"); printf("Transmitting RMAP command\n");
if (rmap_tx(cmd, cmd_size, dpath_len, data, data_size)) { if (rmap_tx(cmd, cmd_size, dpath_len, data, data_size)) {
...@@ -530,7 +530,7 @@ int rdcu_sync_data(int (*fn)(uint16_t trans_id, uint8_t *cmd, ...@@ -530,7 +530,7 @@ int rdcu_sync_data(int (*fn)(uint16_t trans_id, uint8_t *cmd,
slot = trans_log_grab_slot(data); slot = trans_log_grab_slot(data);
if (slot < 0) { if (slot < 0) {
if (0) if ((0))
printf("Error: all slots busy!\n"); printf("Error: all slots busy!\n");
return 1; return 1;
} }
...@@ -792,10 +792,10 @@ void rdcu_rmap_reset_log(void) ...@@ -792,10 +792,10 @@ void rdcu_rmap_reset_log(void)
* *
* @param mtu the maximum data transfer size per unit * @param mtu the maximum data transfer size per unit
* *
* @param rmap_tx a function pointer to transmit an rmap command * @param tx a function pointer to transmit an rmap command
* @param rmap_rx function pointer to receive 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 * rmap_rx is expected to return the number of packet bytes
* *
* @returns 0 on success, otherwise error * @returns 0 on success, otherwise error
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment