From f426ac21743c205a79bc1c77c188a1a0bc84411f Mon Sep 17 00:00:00 2001 From: Mike Walters Date: Wed, 4 Jan 2023 11:38:19 +0000 Subject: [PATCH] hackrf_spiflash: use defines for compatibility_check return value --- host/hackrf-tools/src/hackrf_spiflash.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/host/hackrf-tools/src/hackrf_spiflash.c b/host/hackrf-tools/src/hackrf_spiflash.c index 00f85b60..1e93de2d 100644 --- a/host/hackrf-tools/src/hackrf_spiflash.c +++ b/host/hackrf-tools/src/hackrf_spiflash.c @@ -88,7 +88,7 @@ int compatibility_check(uint8_t* data, int length, hackrf_device* device) break; default: printf("Unsupported Board ID"); - return 1; + return EXIT_FAILURE; } // Search for dev_str in uint8_t array of bytes that we're flashing for (i = 0; i < length - str_len; i++) { @@ -102,11 +102,11 @@ int compatibility_check(uint8_t* data, int length, hackrf_device* device) } } if (match) { - return 0; + return EXIT_SUCCESS; } } } - return 1; + return EXIT_FAILURE; } int parse_u32(char* s, uint32_t* const value)