Skip to content
Snippets Groups Projects
Commit b0f5b9a4 authored by Randy Mackay's avatar Randy Mackay
Browse files

Plane: use renamed RCInput valid_channels

parent 31e43094
No related branches found
No related tags found
No related merge requests found
...@@ -139,7 +139,7 @@ test_passthru(uint8_t argc, const Menu::arg *argv) ...@@ -139,7 +139,7 @@ test_passthru(uint8_t argc, const Menu::arg *argv)
delay(20); delay(20);
// New radio frame? (we could use also if((millis()- timer) > 20) // New radio frame? (we could use also if((millis()- timer) > 20)
if (hal.rcin->valid() > 0) { if (hal.rcin->valid_channels() > 0) {
cliSerial->print_P(PSTR("CH:")); cliSerial->print_P(PSTR("CH:"));
for(int16_t i = 0; i < 8; i++) { for(int16_t i = 0; i < 8; i++) {
cliSerial->print(hal.rcin->read(i)); // Print channel values cliSerial->print(hal.rcin->read(i)); // Print channel values
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment