mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 01:10:22 +03:00
hcsr04: Fixed compilation error after MRAA enum renaming
Closes #214. Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
This commit is contained in:
parent
cff584d8b9
commit
08ff50067a
@ -49,8 +49,7 @@ HCSR04::HCSR04 (uint8_t triggerPin, uint8_t echoPin, void (*fptr)(void *)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mraa_gpio_dir(m_echoPinCtx, MRAA_GPIO_IN);
|
mraa_gpio_dir(m_echoPinCtx, MRAA_GPIO_IN);
|
||||||
gpio_edge_t edge = MRAA_GPIO_EDGE_BOTH;
|
mraa_gpio_isr(m_echoPinCtx, MRAA_GPIO_EDGE_BOTH, fptr, NULL);
|
||||||
mraa_gpio_isr (m_echoPinCtx, edge, fptr, NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HCSR04::~HCSR04 () {
|
HCSR04::~HCSR04 () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user