Rev 403 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 403 | Rev 495 | ||
---|---|---|---|
Line 16... | Line 16... | ||
16 | MKCommunicator mk=null; |
16 | MKCommunicator mk=null; |
Line 17... | Line 17... | ||
17 | 17 | ||
18 | int debug_data_count_buff=-123; |
18 | int debug_data_count_buff=-123; |
Line -... | Line 19... | ||
- | 19 | int lcd_data_count_buff=-123; |
|
19 | int lcd_data_count_buff=-123; |
20 | |
20 | 21 | ||
- | 22 | public MKWatchDog(MKCommunicator _mk) |
|
21 | public MKWatchDog(MKCommunicator _mk) |
23 | { |
22 | { |
24 | |
23 | mk=_mk; |
25 | mk=_mk; |
Line 24... | Line 26... | ||
24 | new Thread( this ).start(); // fire up main Thread |
26 | new Thread( this ).start(); // fire up main Thread |
Line 32... | Line 34... | ||
32 | catch (Exception e) { } |
34 | catch (Exception e) { } |
Line 33... | Line 35... | ||
33 | 35 | ||
34 | if (mk.connected&&(!mk.force_disconnect)) |
36 | if (mk.connected&&(!mk.force_disconnect)) |
35 | { |
37 | { |
- | 38 | if (debug_data_count_buff==mk.debug_data_count) |
|
36 | if (debug_data_count_buff==mk.debug_data_count) |
39 | { |
37 | mk.close_connections(false); |
40 | mk.close_connections(false); |
38 | 41 | } |
|
39 | if ((lcd_data_count_buff==mk.lcd_data_count)||(mk.lcd_data_count==0)) |
42 | if ((lcd_data_count_buff==mk.lcd_data_count)||(mk.lcd_data_count==0)) |
Line 40... | Line 43... | ||
40 | mk.LCD.trigger_LCD(); |
43 | mk.LCD.trigger_LCD(); |
41 | 44 |