aboutsummaryrefslogtreecommitdiff
path: root/src/flash/avrf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/avrf.c')
-rw-r--r--src/flash/avrf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/avrf.c b/src/flash/avrf.c
index 5d3c033..f1db3c4 100644
--- a/src/flash/avrf.c
+++ b/src/flash/avrf.c
@@ -184,7 +184,7 @@ FLASH_BANK_COMMAND_HANDLER(avrf_flash_bank_command)
{
struct avrf_flash_bank *avrf_info;
- if (argc < 6)
+ if (CMD_ARGC < 6)
{
LOG_WARNING("incomplete flash_bank avr configuration");
return ERROR_FLASH_BANK_INVALID;
@@ -419,7 +419,7 @@ COMMAND_HANDLER(avrf_handle_mass_erase_command)
{
int i;
- if (argc < 1)
+ if (CMD_ARGC < 1)
{
command_print(cmd_ctx, "avr mass_erase <bank>");
return ERROR_OK;