Private
Public Access
2
0

pwm.hpp: fix pin/chipid order in raw init

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2015-02-09 16:40:09 +00:00
parent 459ecc0c1c
commit fca0efa254

View File

@@ -52,7 +52,7 @@ class Pwm {
m_pwm = mraa_pwm_init(pin);
}
else {
m_pwm = mraa_pwm_init_raw(pin, chipid);
m_pwm = mraa_pwm_init_raw(chipid, pin);
}
if (m_pwm == NULL) {