diff --git a/include/osdp.h b/include/osdp.h index 1326814..15543b8 100644 --- a/include/osdp.h +++ b/include/osdp.h @@ -958,7 +958,7 @@ int osdp_cp_send_command(osdp_t *ctx, int pd, const struct osdp_cmd *cmd); * osdp_cp_setup() * @return int Count of events dequeued */ -int osdp_cp_flush_events(osdp_t *ctx, int pd); +int osdp_cp_flush_commands(osdp_t *ctx, int pd); /** * @brief Get PD ID information as reported by the PD. Calling this method diff --git a/src/osdp_cp.c b/src/osdp_cp.c index 47dce51..68c4f4d 100644 --- a/src/osdp_cp.c +++ b/src/osdp_cp.c @@ -1471,7 +1471,7 @@ int osdp_cp_send_command(osdp_t *ctx, int pd_idx, const struct osdp_cmd *cmd) } OSDP_EXPORT -int osdp_cp_flush_events(osdp_t *ctx, int pd_idx) +int osdp_cp_flush_commands(osdp_t *ctx, int pd_idx) { input_check(ctx, pd_idx); struct osdp_pd *pd = osdp_to_pd(ctx, pd_idx);