Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
d3kanesa committed Dec 30, 2024
1 parent c1f8f52 commit 9ecec2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/ms-common/src/x86/interrupts.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ StatusCode interrupt_nvic_register_handler(uint8_t irq_channel, x86InterruptHand
StatusCode interrupt_nvic_trigger(uint8_t irq_channel) {

/* Validate channel */
if irq_channel >= NUM_STM32L433X_INTERRUPT_CHANNELS) {
if irq_channel >= NUM_STM32L433X_INTERRUPT_CHANNELS {
return STATUS_CODE_INVALID_ARGS;
}

Expand All @@ -225,6 +225,7 @@ StatusCode interrupt_nvic_trigger(uint8_t irq_channel) {
}

StatusCode interrupt_exti_enable(GpioAddress *address, const InterruptSettings *settings) {

if (settings == NULL || address == NULL || settings->class >= NUM_INTERRUPT_CLASSES || settings->edge >= NUM_INTERRUPT_EDGES) {
return STATUS_CODE_INVALID_ARGS;
}
Expand Down

0 comments on commit 9ecec2b

Please sign in to comment.