Fix another compiler issue found in build testing.

This commit is contained in:
Gregory Nutt 2017-02-28 14:14:32 -06:00
parent 095411859e
commit 192c41aa45

View File

@ -314,7 +314,8 @@ void stm32_pmbuttons(void)
int i;
for (i = CONFIG_PM_IRQBUTTONS_MIN; i <= CONFIG_PM_IRQBUTTONS_MAX; i++)
{
xcpt_t oldhandler = board_button_irq(i, g_buttonhandlers[BUTTON_INDEX(i)]);
xcpt_t oldhandler =
board_button_irq(i, g_buttonhandlers[BUTTON_INDEX(i)], NULL);
if (oldhandler != NULL)
{