From 56673c29d390192451599b11bf2e748d14da0db9 Mon Sep 17 00:00:00 2001 From: "osboxes.org" Date: Tue, 31 Dec 2019 21:38:13 +0100 Subject: [PATCH] style --- client/comms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/comms.c b/client/comms.c index d39680c6c..cbabe3354 100644 --- a/client/comms.c +++ b/client/comms.c @@ -725,7 +725,7 @@ bool WaitForResponseTimeoutW(uint32_t cmd, PacketResponseNG *response, size_t ms } uint64_t tmp_clk = __atomic_load_n(&timeout_start_time, __ATOMIC_SEQ_CST); - if ((ms_timeout != (size_t) -1) && (msclock() - tmp_clk > ms_timeout)) + if ((ms_timeout != (size_t) - 1) && (msclock() - tmp_clk > ms_timeout)) break; if (msclock() - tmp_clk > 3000 && show_warning) { @@ -807,7 +807,7 @@ static bool dl_it(uint8_t *dest, uint32_t bytes, PacketResponseNG *response, siz __atomic_store_n(&timeout_start_time, msclock(), __ATOMIC_SEQ_CST); // Add delay depending on the communication channel & speed - if (ms_timeout != (size_t) -1) + if (ms_timeout != (size_t) - 1) ms_timeout += communication_delay(); while (true) {