Rev 889 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 889 | Rev 902 | ||
---|---|---|---|
Line 282... | Line 282... | ||
282 | Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
282 | Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
283 | while(!UebertragungAbgeschlossen); |
283 | while(!UebertragungAbgeschlossen); |
284 | if(tmp_char_arr2[0] != 0xff) |
284 | if(tmp_char_arr2[0] != 0xff) |
285 | { |
285 | { |
286 | if(tmp_char_arr2[0] > 5) tmp_char_arr2[0] = 5; |
286 | if(tmp_char_arr2[0] > 5) tmp_char_arr2[0] = 5; |
287 | ReadParameterSet(tmp_char_arr2[0], (unsigned char *) &EE_Parameter.Kanalbelegung[0], STRUCT_PARAM_LAENGE); |
287 | ReadParameterSet(tmp_char_arr2[0], (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
288 | SendOutData('L' + tmp_char_arr2[0] -1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],STRUCT_PARAM_LAENGE); |
288 | SendOutData('L' + tmp_char_arr2[0] -1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
289 | } |
289 | } |
290 | else |
290 | else |
291 | SendOutData('L' + GetActiveParamSetNumber()-1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],STRUCT_PARAM_LAENGE); |
291 | SendOutData('L' + GetActiveParamSetNumber()-1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
Line 292... | Line 292... | ||
292 | 292 | ||
Line 293... | Line 293... | ||
293 | break; |
293 | break; |
294 | 294 | ||
295 | case 'l': |
295 | case 'l': |
296 | case 'm': |
296 | case 'm': |
297 | case 'n': |
297 | case 'n': |
298 | case 'o': |
298 | case 'o': |
299 | case 'p': // Parametersatz speichern |
299 | case 'p': // Parametersatz speichern |
300 | Decode64((unsigned char *) &EE_Parameter.Kanalbelegung[0],STRUCT_PARAM_LAENGE,3,AnzahlEmpfangsBytes); |
300 | Decode64((unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct),3,AnzahlEmpfangsBytes); |
301 | WriteParameterSet(RxdBuffer[2] - 'l' + 1, (unsigned char *) &EE_Parameter.Kanalbelegung[0], STRUCT_PARAM_LAENGE); |
301 | WriteParameterSet(RxdBuffer[2] - 'l' + 1, (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
302 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], RxdBuffer[2] - 'l' + 1); // aktiven Datensatz merken |
302 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], RxdBuffer[2] - 'l' + 1); // aktiven Datensatz merken |
303 | Umschlag180Nick = (long) EE_Parameter.WinkelUmschlagNick * 2500L; |
303 | Umschlag180Nick = (long) EE_Parameter.WinkelUmschlagNick * 2500L; |
304 | Umschlag180Roll = (long) EE_Parameter.WinkelUmschlagRoll * 2500L; |
304 | Umschlag180Roll = (long) EE_Parameter.WinkelUmschlagRoll * 2500L; |