DSM2 Bind Mode Fix -- Issue 98

Some DSM2 modules take longer than others to power up. Thus, sending a 
single BIND packet is not sufficient in some cases. I have implemented
here an approimately 4 second period (after power-up) during which
time the trainer swtich can activate BIND mode.

This is in fact not strictly needed, since the DSM module will by
itself reject bind packets after a short time. (I have confirmed this
    again with my DSM2 module today.) However, we like to be sure, so the
limited time window for BIND activation remains.

The word "BIND" also now appears as confirmation in upper-right of 
the main view, whenever bind packets are being sent to the DSM module.

(I did not consider it important to add this "BIND" word to the 
 language files. Please feel free to do so though, if warranted.)

Gruvin.
This commit is contained in:
gruvin@gmail.com
2012-08-20 05:06:31 +00:00
parent 14598e9d59
commit de7a8c800b
2 changed files with 17 additions and 6 deletions
+4
View File
@@ -380,4 +380,8 @@ void menuMainView(uint8_t event)
DISPLAY_PROGRESS_BAR(20*FW+1);
#endif
#ifdef DSM2
if (s_bind_mode)
lcd_putsAtt(15*FW, 0, PSTR("BIND"), 0);
#endif
}