Skip to content

Commit 83236e0

Browse files
committed
fixup! PD: Add internal command validation
Fix a typo in command validator. Fixes: 969dbf8 Signed-off-by: Siddharth Chandrasekaran <[email protected]>
1 parent 969dbf8 commit 83236e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/osdp_pd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ static bool validate_command(struct osdp_pd *pd, struct osdp_cmd *cmd)
213213
result = false;
214214
}
215215
break;
216-
case OSDP_CMD_OUTPUT:
216+
case OSDP_CMD_BUZZER:
217217
/* ON duration must nonzero unless the control_code is 0x01 */
218218
if (cmd->buzzer.on_count == 0 &&
219219
cmd->buzzer.control_code != 1) {

0 commit comments

Comments
 (0)