return mask of enabled protocols.
| 261 | |
| 262 | // return mask of enabled protocols. |
| 263 | uint32_t RC_Channels::enabled_protocols() const |
| 264 | { |
| 265 | if (_singleton == nullptr) { |
| 266 | // for example firmware |
| 267 | return 1U; |
| 268 | } |
| 269 | return uint32_t(_protocols.get()); |
| 270 | } |
| 271 | |
| 272 | #if AP_SCRIPTING_ENABLED |
| 273 | /* |
no test coverage detected