Rev 2190 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2190 | Rev 2263 | ||
---|---|---|---|
Line 201... | Line 201... | ||
201 | { |
201 | { |
202 | unsigned char status = 0; |
202 | unsigned char status = 0; |
203 | static char old_status = 0; |
203 | static char old_status = 0; |
204 | static int repeat; |
204 | static int repeat; |
205 | //if(Parameter_UserParam1) return(Parameter_UserParam1); |
205 | //if(Parameter_UserParam1) return(Parameter_UserParam1); |
206 | //DebugOut.Analog[16] = 0; |
- | |
207 | ToNC_SpeakHoTT = SpeakHoTT; |
206 | ToNC_SpeakHoTT = SpeakHoTT; |
208 | if(FC_StatusFlags & FC_STATUS_LOWBAT) status = VOICE_MINIMALE_EINGANSSPANNUNG; |
207 | if(FC_StatusFlags & FC_STATUS_LOWBAT) status = VOICE_MINIMALE_EINGANSSPANNUNG; |
209 | else |
208 | else |
210 | if(NC_ErrorCode) |
209 | if(NC_ErrorCode) // Fehlercodes |
211 | { |
210 | { |
212 | if(MotorenEin || !pgm_read_byte(&HOTT_ERROR[NC_ErrorCode][1])) status = pgm_read_byte(&HOTT_ERROR[NC_ErrorCode][0]); |
211 | if(MotorenEin || !pgm_read_byte(&HOTT_ERROR[NC_ErrorCode][1])) status = pgm_read_byte(&HOTT_ERROR[NC_ErrorCode][0]); |
213 | } |
212 | } |
214 | if(!status) |
213 | if(!status) // Sprachansagen |
215 | { |
214 | { |
216 | if(!(GetParamByte(PID_SPEAK_HOTT_CFG) & 0x01)) SpeakHoTT = 0; // is the voice wanted? |
215 | // if(!(GetParamByte(PID_SPEAK_HOTT_CFG) & 0x01)) SpeakHoTT = 0; // is the voice wanted? |
- | 216 | if(!(EE_Parameter.GlobalConfig3 & CFG3_SPEAK_ALL)) SpeakHoTT = 0; // is the voice wanted? |
|
217 | else status = SpeakHoTT; |
217 | else status = SpeakHoTT; |
218 | } |
218 | } |
219 | else ToNC_SpeakHoTT = status; |
219 | else ToNC_SpeakHoTT = status; |
Line 220... | Line 220... | ||
220 | 220 | ||
221 | if(old_status == status) |
221 | if(old_status == status) // Gleichen Fehler nur alle 5 sek bringen |
222 | { |
222 | { |
223 | if(!CheckDelay(repeat)) return(0); |
223 | if(!CheckDelay(repeat)) return(0); |
224 | repeat = SetDelay(5000); |
224 | repeat = SetDelay(5000); |
225 | } |
225 | } |
Line 763... | Line 763... | ||
763 | case 13: |
763 | case 13: |
764 | case 14: |
764 | case 14: |
765 | case 15: |
765 | case 15: |
766 | case 16: |
766 | case 16: |
767 | if(HottKeyboard == HOTT_KEY_SET) { if(show_poti) show_poti = 0; else show_poti = 1; Hott_ClearLine(6); Hott_ClearLine(7);} |
767 | if(HottKeyboard == HOTT_KEY_SET) { if(show_poti) show_poti = 0; else show_poti = 1; Hott_ClearLine(6); Hott_ClearLine(7);} |
768 | else |
768 | // else |
769 | if(HottKeyboard == HOTT_KEY_LEFT) { LIBFC_HoTT_Clear(); page = 3; line = 0;} |
769 | // if(HottKeyboard == HOTT_KEY_LEFT) { LIBFC_HoTT_Clear(); page = 3; line = 0;} |
770 | else |
770 | else |
771 | if(HottKeyboard == HOTT_KEY_RIGHT) { LIBFC_HoTT_Clear(); page = 1; line = 0;}; |
771 | if(HottKeyboard == HOTT_KEY_RIGHT) { LIBFC_HoTT_Clear(); page = 1; line = 0;}; |
772 | HottKeyboard = 0; |
772 | HottKeyboard = 0; |
773 | break; |
773 | break; |
774 | default: line = 0; |
774 | default: line = 0; |
775 | break; |
775 | break; |
776 | } |
776 | } |
777 | else |
777 | /* else |
778 | if(page == 3) |
778 | if(page == 3) |
779 | switch(line++) |
779 | switch(line++) |
780 | { |
780 | { |
781 | case 0: |
781 | case 0: |
782 | HoTT_printfxy(0,2,"Speak:"); |
782 | HoTT_printfxy(0,2,"Speak:"); |
783 | break; |
783 | break; |
784 | case 1: |
784 | case 1: |
- | 785 | // if(GetParamByte(PID_SPEAK_HOTT_CFG) & 0x01) |
|
785 | if(GetParamByte(PID_SPEAK_HOTT_CFG) & 0x01) HoTT_printfxy_INV(7,2,"All Messages ") |
786 | if(!(GlobalConfig3 & CFG3_SPEAK_ALL) & 0x01)) HoTT_printfxy_INV(7,2,"All Messages ") |
786 | else HoTT_printfxy_INV(7,2,"Warnings only"); |
787 | else HoTT_printfxy_INV(7,2,"Warnings only"); |
787 | break; |
788 | break; |
788 | case 2: |
789 | case 2: |
789 | HoTT_printfxy(1,4,"Use (set) to select"); |
790 | HoTT_printfxy(1,4,"Use (set) to select"); |
790 | break; |
791 | break; |
Line 797... | Line 798... | ||
797 | if(HottKeyboard == HOTT_KEY_RIGHT) { LIBFC_HoTT_Clear(); page = 2; line = 0;}; |
798 | if(HottKeyboard == HOTT_KEY_RIGHT) { LIBFC_HoTT_Clear(); page = 2; line = 0;}; |
798 | HottKeyboard = 0; |
799 | HottKeyboard = 0; |
799 | line = 0; |
800 | line = 0; |
800 | break; |
801 | break; |
801 | } |
802 | } |
- | 803 | */ |
|
802 | else page = 0; |
804 | else page = 0; |
803 | } |
805 | } |
Line 804... | Line 806... | ||
804 | 806 |