[Taranis] DSM2 BIND code

This commit is contained in:
bsongis@gmail.com
2013-06-24 10:17:25 +00:00
parent 442264199f
commit e5595cfdce
7 changed files with 86 additions and 74 deletions
+6 -2
View File
@@ -463,11 +463,15 @@ enum EnumKeys {
#define LOAD_MODEL_BITMAP()
#endif
// TODO elsewhere ...
#if defined(DSM2)
extern bool s_bind_mode;
extern bool s_rangecheck_mode;
#define DSM2_BIND_FLAG 0x80
#define DSM2_RANGECHECK_FLAG 0x20
extern uint8_t dsm2Flag;
#if !defined(PCBTARANIS)
extern uint8_t s_bind_allowed;
#endif
#endif
#if defined(CPUARM)
#define IS_PPM_PROTOCOL(protocol) (protocol==PROTO_PPM)