Skip to content

Commit

Permalink
Fix Fernotron device type validations
Browse files Browse the repository at this point in the history
  • Loading branch information
zwiebert committed Jan 13, 2025
1 parent ba64e68 commit db23afd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/tronferno/app_cli/parm_config_app.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ bool process_parmConfig_app(otok kt, const char *key, const char *val, class Uou
} else {
uint32_t cu = strtoul(val, NULL, 16);

if (!(GET_BYTE_2(cu) == FER_ADDR_TYPE_CentralUnit && GET_BYTE_3(cu) == 0)) {
if (!FER_U32_TEST_TYPE(cu, FER_ADDR_TYPE_CentralUnit)) {
return cli_replyFailure(td);
}
(void) set_optN(u32, cu, CB_CUID);
Expand Down

0 comments on commit db23afd

Please sign in to comment.