1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-22 07:45:29 +03:00

CF/BF - Reinstate boardType from CF v1.x to allow detection of OSD slave

boards by the configurator.
This commit is contained in:
Hydra 2017-04-08 21:44:29 +01:00 committed by Dominic Clifton
parent 6485dff6f0
commit 9bb0e30f1f
2 changed files with 10 additions and 1 deletions

View file

@ -567,6 +567,15 @@ static bool mspFcProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst, mspPostProcessFn
sbufWriteU16(dst, hardwareRevision);
#else
sbufWriteU16(dst, 0); // No other build targets currently have hardware revision detection.
#endif
#ifdef USE_OSD_SLAVE
sbufWriteU8(dst, 1); // 1 == OSD
#else
#if defined(OSD) && defined(USE_MAX7456)
sbufWriteU8(dst, 2); // 2 == FC with OSD
#else
sbufWriteU8(dst, 0); // 0 == FC
#endif
#endif
break;