bmg160: use MRAA::Edge for interrupt edge specification

Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
Jon Trulson
2017-03-24 15:03:37 -06:00
parent 22a6c52795
commit 3c5a5b87c8
2 changed files with 14 additions and 12 deletions

View File

@@ -279,10 +279,11 @@ uint8_t BMG160::getInterruptStatus3()
}
void BMG160::installISR(BMG160_INTERRUPT_PINS_T intr, int gpio,
mraa_gpio_edge_t level,
mraa::Edge level,
void (*isr)(void *), void *arg)
{
if (bmg160_install_isr(m_bmg160, intr, gpio, level, isr, arg))
if (bmg160_install_isr(m_bmg160, intr, gpio,
(mraa_gpio_edge_t)level, isr, arg))
throw std::runtime_error(string(__FUNCTION__)
+ ": bmg160_install_isr() failed");
}