aboutsummaryrefslogtreecommitdiff
path: root/stm-uart.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2017-10-11 21:26:27 -0400
committerPaul Selkirk <paul@psgd.org>2017-10-11 21:26:27 -0400
commitb159bf0bb24a99c7d3ff1b3855f840add63198e5 (patch)
tree9e3861da94bb69412025ef51db5a686d717d7a84 /stm-uart.c
parent4026cce22d330d3b9c4b218dd2e19d4f60412e05 (diff)
Cleanup 'unused parameter' warnings, a couple of which are actual coding errors.
Diffstat (limited to 'stm-uart.c')
-rw-r--r--stm-uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stm-uart.c b/stm-uart.c
index f54d95e..59089fe 100644
--- a/stm-uart.c
+++ b/stm-uart.c
@@ -249,7 +249,7 @@ HAL_StatusTypeDef uart_send_hexdump(stm_uart_port_t port, const uint8_t *buf,
uart_send_string2(port, "00 -- ");
- for (i = 0; i <= end_offset; i++) {
+ for (i = start_offset; i <= end_offset; i++) {
if (i && (! (i % 16))) {
uart_send_string2(port, "\r\n");