Subversion Repositories FlightCtrl

Rev

Rev 2090 | Rev 2120 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2090 Rev 2091
Line 202... Line 202...
202
  if(NC_ErrorCode)      
202
  if(NC_ErrorCode)      
203
   {
203
   {
204
    if(MotorenEin || !pgm_read_byte(&HOTT_ERROR[NC_ErrorCode][1])) status = pgm_read_byte(&HOTT_ERROR[NC_ErrorCode][0]);
204
    if(MotorenEin || !pgm_read_byte(&HOTT_ERROR[NC_ErrorCode][1])) status = pgm_read_byte(&HOTT_ERROR[NC_ErrorCode][0]);
205
   }
205
   }
Line -... Line 206...
-
 
206
 
-
 
207
  if(!status)
-
 
208
   {
206
 
209
        if(!(GetParamByte(PID_SPEAK_HOTT_CFG) & 0x01)) SpeakHoTT = 0;  // is the voice wanted?
-
 
210
    else status = SpeakHoTT;
Line 207... Line 211...
207
  if(!status) {status = SpeakHoTT; };
211
   };
208
 
212
 
209
  if(old_status == status)
213
  if(old_status == status)
210
   {
214
   {
Line 218... Line 222...
218
    if(status == SpeakHoTT) SpeakHoTT = 0;
222
    if(status == SpeakHoTT) SpeakHoTT = 0;
219
   }   
223
   }   
220
  old_status = status;
224
  old_status = status;
221
DebugOut.Analog[16] = status;
225
DebugOut.Analog[16] = status;
222
if(status) DebugOut.Analog[17]++;
226
if(status) DebugOut.Analog[17]++;
223
 
-
 
224
  return(status);
227
  return(status);
225
}
228
}
Line 226... Line 229...
226
 
229
 
227
//---------------------------------------------------------------
230
//---------------------------------------------------------------
Line 710... Line 713...
710
    case 14:
713
    case 14:
711
    case 15:
714
    case 15:
712
    case 16:
715
    case 16:
713
                        if(HottKeyboard == HOTT_KEY_SET) { if(show_poti) show_poti = 0; else show_poti = 1;   Hott_ClearLine(6);  Hott_ClearLine(7);}
716
                        if(HottKeyboard == HOTT_KEY_SET) { if(show_poti) show_poti = 0; else show_poti = 1;   Hott_ClearLine(6);  Hott_ClearLine(7);}
714
                        else
717
                        else
-
 
718
                        if(HottKeyboard == HOTT_KEY_LEFT) { LIBFC_HoTT_Clear(); page = 3; line = 0;}
-
 
719
                        else
715
                        if(HottKeyboard == HOTT_KEY_RIGHT) { LIBFC_HoTT_Clear(); page = 1; line = 0;};
720
                        if(HottKeyboard == HOTT_KEY_RIGHT) { LIBFC_HoTT_Clear(); page = 1; line = 0;};
716
                        HottKeyboard = 0;
721
                        HottKeyboard = 0;
717
                        break;
722
                        break;
718
   default:  line = 0;
723
   default:  line = 0;
719
                        break;
724
                        break;
720
  }
725
  }
-
 
726
  else
-
 
727
  if(page == 3)
-
 
728
  switch(line++)
-
 
729
  {
-
 
730
        case 0:  
-
 
731
                        HoTT_printfxy(0,2,"Speak:");
-
 
732
                        break;
-
 
733
        case 1:  
-
 
734
                        if(GetParamByte(PID_SPEAK_HOTT_CFG) & 0x01) HoTT_printfxy_INV(7,2,"All Messages ")
-
 
735
                        else                    HoTT_printfxy_INV(7,2,"Warnings only");
-
 
736
                        break;
-
 
737
        case 2:  
-
 
738
                        HoTT_printfxy(1,4,"Use (set) to select");
-
 
739
                        break;
-
 
740
    default:
-
 
741
                        if(HottKeyboard == HOTT_KEY_SET)
-
 
742
                         {
-
 
743
                          SetParamByte(PID_SPEAK_HOTT_CFG, GetParamByte(PID_SPEAK_HOTT_CFG) ^ 0x01);
-
 
744
                         }
-
 
745
                        else
-
 
746
                        if(HottKeyboard == HOTT_KEY_RIGHT) { LIBFC_HoTT_Clear(); page = 2; line = 0;};
-
 
747
                        HottKeyboard = 0;
-
 
748
                        line = 0;
-
 
749
                        break;
-
 
750
  }
721
  else page = 0;
751
  else page = 0;
722
}
752
}
Line 723... Line 753...
723
 
753