Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jackysze committed May 13, 2024
1 parent 3c7ef26 commit a1513a3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/IRsend.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ enum argo_ac_remote_model_t {

/// Toshiba A/C model numbers
enum toshiba_ac_remote_model_t {
kToshibaGenericRemote_A = 0, // Default from existing codebase
kToshibaGenericRemote_B = 1, // Newly discovered remote control b, applies to
kToshibaGenericRemote_A = 0, // Default from existing codebase
kToshibaGenericRemote_B = 1, // Newly discovered remote control b, applies to
// many remote models such as WA-TH03A, WA-TH04A etc.
};

Expand Down
2 changes: 1 addition & 1 deletion src/IRutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ namespace irutils {
case toshiba_ac_remote_model_t::kToshibaGenericRemote_B:
return kToshibaGenericRemoteBStr;
default:
return kUnknownStr;
return kUnknownStr;
}
default: return kUnknownStr;
}
Expand Down
10 changes: 6 additions & 4 deletions src/ir_Toshiba.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,16 +499,18 @@ String IRToshibaAC::toString(void) const {
/// Get the model information currently known.
/// @return The known model number.
toshiba_ac_remote_model_t IRToshibaAC::getModel(void) const {
switch(_.Model) {
case kToshibaAcRemoteB: return toshiba_ac_remote_model_t::kToshibaGenericRemote_B;
default: return toshiba_ac_remote_model_t::kToshibaGenericRemote_A;
switch (_.Model) {
case kToshibaAcRemoteB:
return toshiba_ac_remote_model_t::kToshibaGenericRemote_B;
default:
return toshiba_ac_remote_model_t::kToshibaGenericRemote_A;
}
}

/// Set the current model for the remote.
/// @param[in] model The model number.
void IRToshibaAC::setModel(const toshiba_ac_remote_model_t model) {
switch(model) {
switch (model) {
case toshiba_ac_remote_model_t::kToshibaGenericRemote_B:
_.Model = kToshibaAcRemoteB;
break;
Expand Down
4 changes: 2 additions & 2 deletions src/locale/defaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -1122,10 +1122,10 @@ D_STR_INDIRECT " " D_STR_MODE
#endif // D_STR_ZEPEAL
#ifndef D_STR_TOSHIBAGENERICREMOTEA
#define D_STR_TOSHIBAGENERICREMOTEA "TOSHIBA REMOTE A"
#endif // D_STR_TOSHIBAGENERICREMOTEA
#endif // D_STR_TOSHIBAGENERICREMOTEA
#ifndef D_STR_TOSHIBAGENERICREMOTEB
#define D_STR_TOSHIBAGENERICREMOTEB "TOSHIBA REMOTE B"
#endif // D_STR_TOSHIBAGENERICREMOTEB
#endif // D_STR_TOSHIBAGENERICREMOTEB

// IRrecvDumpV2+
#ifndef D_STR_TIMESTAMP
Expand Down

0 comments on commit a1513a3

Please sign in to comment.