You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. configure xbee s1 for adc and digital sample (a0,a1,d2,d3)
2. parse received data from RX_16_IO_RESPONSE
3. check digital inputs enabled with isDigitalEnabled
What is the expected output? What do you see instead?
shows the digital value instead of if digital output is enabled or not
What version of the product are you using? On what operating system?
xbee-arduino-0.4-softwareserial-beta
Please provide any additional information below.
solved changing this in Xbee.cpp
bool RxIoSampleBaseResponse::isDigitalEnabled(uint8_t pin) {
if (pin < 8) {
return ((getFrameData()[getSampleOffset() + 4] >> pin) & 1) == 1;
} else {
return (getFrameData()[getSampleOffset() + 3] & 1) == 1;
}
}
for this:
bool RxIoSampleBaseResponse::isDigitalEnabled(uint8_t pin) {
if (pin < 8) {
return ((getFrameData()[getSampleOffset() + 2] >> pin) & 1) == 1;
} else {
return (getFrameData()[getSampleOffset() + 1] & 1) == 1;
}
}
Original issue reported on code.google.com by [email protected] on 26 Mar 2013 at 7:16
Original issue reported on code.google.com by
[email protected]
on 26 Mar 2013 at 7:16Attachments:
The text was updated successfully, but these errors were encountered: