Skip to content

Commit

Permalink
Fix mac warning in dofi command
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Apr 24, 2024
1 parent 3d23687 commit 5a11f64
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions plugins/dofi/dofi/Command.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,36 +131,36 @@ typedef enum
switch (command)
{
case dofi::DOFI_RESET:
snprintf (CommandDescription, DOFI_MAXTEXT, "Reset dofi SPI connection");
snprintf(CommandDescription, DOFI_MAXTEXT, "Reset dofi SPI connection");
break;
case dofi::DOFI_READ:
snprintf (CommandDescription, DOFI_MAXTEXT, "Read value");
snprintf(CommandDescription, DOFI_MAXTEXT, "Read value");
break;
case dofi::DOFI_WRITE:
snprintf (CommandDescription, DOFI_MAXTEXT, "Write value");
snprintf(CommandDescription, DOFI_MAXTEXT, "Write value");
break;
case dofi::DOFI_RESET_SCALER:
snprintf (CommandDescription, DOFI_MAXTEXT, "Reset scalers");
snprintf(CommandDescription, DOFI_MAXTEXT, "Reset scalers");
break;
case dofi::DOFI_ENABLE_SCALER:
snprintf (CommandDescription, DOFI_MAXTEXT, "Enable scalers");
snprintf(CommandDescription, DOFI_MAXTEXT, "Enable scalers");
break;
case dofi::DOFI_DISABLE_SCALER:
snprintf (CommandDescription, DOFI_MAXTEXT, "Disable scalers");
snprintf(CommandDescription, DOFI_MAXTEXT, "Disable scalers");
break;

case dofi::DOFI_SETBIT:
snprintf (CommandDescription, DOFI_MAXTEXT, "Set Bitmask");
snprintf(CommandDescription, DOFI_MAXTEXT, "Set Bitmask");
break;
case dofi::DOFI_CLEARBIT:
snprintf (CommandDescription, DOFI_MAXTEXT, "Clear Bitmask");
snprintf(CommandDescription, DOFI_MAXTEXT, "Clear Bitmask");
break;
case dofi::DOFI_CONFIGURE:
snprintf (CommandDescription, DOFI_MAXTEXT, "Configure from file");
snprintf(CommandDescription, DOFI_MAXTEXT, "Configure from file");
break;

default:
snprintf (CommandDescription, DOFI_MAXTEXT, "Unknown command");
snprintf(CommandDescription, DOFI_MAXTEXT, "Unknown command");
break;
};
return CommandDescription;
Expand All @@ -171,7 +171,7 @@ typedef enum
//printm (" doficmd dump: \n");
hexformat == 1 ? DOUT0 (" Command :0x%x (%s)", command, get_description ()) :
DOUT0 (" Command: %d (%s)", command, get_description ());
if ((command == DOFI_CONFIGURE)) // || (command == DOFI_VERIFY))
if (command == DOFI_CONFIGURE) // || (command == DOFI_VERIFY))
{
DOUT0 (" \t config file :%s \n", filename);
}
Expand Down

0 comments on commit 5a11f64

Please sign in to comment.