DSM2 Range Check (half) implemented in model SETUP protocol setting.
Half -- because I don't yet know how to make warning sounds in this new code. HELP! :P ... otherwise it's working. I have confirmed that the range check bit appears on the scope, while watching the DSM2 data stream.
This commit is contained in:
+6
-1
@@ -419,6 +419,7 @@ normal:
|
||||
*/
|
||||
|
||||
bool s_bind_mode = false; // Issue 98
|
||||
bool s_rangecheck_mode = false;
|
||||
uint8_t s_bind_allowed = 255; // Issue 98
|
||||
|
||||
FORCEINLINE void setupPulsesDsm2()
|
||||
@@ -430,7 +431,11 @@ FORCEINLINE void setupPulsesDsm2()
|
||||
s_bind_mode = true;
|
||||
*ptr++ = BIND_BIT;
|
||||
}
|
||||
else
|
||||
else if (s_rangecheck_mode)
|
||||
{
|
||||
*ptr++ = RANGECHECK_BIT;
|
||||
}
|
||||
else
|
||||
{
|
||||
s_bind_mode = false;
|
||||
*ptr++ = 0x00;
|
||||
|
||||
Reference in New Issue
Block a user