Rev 687 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 687 | Rev 690 | ||
---|---|---|---|
Line 340... | Line 340... | ||
340 | Decode64((uint8_t *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
340 | Decode64((uint8_t *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
341 | if(tmp_char_arr2[0] != 0xff) |
341 | if(tmp_char_arr2[0] != 0xff) |
342 | { |
342 | { |
343 | if(tmp_char_arr2[0] > 5) tmp_char_arr2[0] = 5; |
343 | if(tmp_char_arr2[0] > 5) tmp_char_arr2[0] = 5; |
344 | ParamSet_ReadFromEEProm(tmp_char_arr2[0]); |
344 | ParamSet_ReadFromEEProm(tmp_char_arr2[0]); |
345 | SendOutData('L' + tmp_char_arr2[0] -1,MeineSlaveAdresse,(uint8_t *) &ParamSet.Kanalbelegung[0],PARAMSET_STRUCT_LEN); |
345 | SendOutData('L' + tmp_char_arr2[0] -1,MeineSlaveAdresse,(uint8_t *) &ParamSet.ChannelAssignment[0],PARAMSET_STRUCT_LEN); |
346 | } |
346 | } |
347 | else |
347 | else |
348 | SendOutData('L' + GetParamByte(PID_ACTIVE_SET)-1,MeineSlaveAdresse,(uint8_t *) &ParamSet.Kanalbelegung[0],PARAMSET_STRUCT_LEN); |
348 | SendOutData('L' + GetParamByte(PID_ACTIVE_SET)-1,MeineSlaveAdresse,(uint8_t *) &ParamSet.ChannelAssignment[0],PARAMSET_STRUCT_LEN); |
Line 349... | Line 349... | ||
349 | 349 | ||
Line 350... | Line 350... | ||
350 | break; |
350 | break; |
351 | 351 | ||
352 | case 'l': |
352 | case 'l': |
353 | case 'm': |
353 | case 'm': |
354 | case 'n': |
354 | case 'n': |
355 | case 'o': |
355 | case 'o': |
356 | case 'p': // Parametersatz speichern |
356 | case 'p': // Parametersatz speichern |
357 | Decode64((uint8_t *) &ParamSet.Kanalbelegung[0],PARAMSET_STRUCT_LEN,3,AnzahlEmpfangsBytes); |
357 | Decode64((uint8_t *) &ParamSet.ChannelAssignment[0],PARAMSET_STRUCT_LEN,3,AnzahlEmpfangsBytes); |
358 | ParamSet_WriteToEEProm(rxd_buffer[2] - 'l' + 1); |
358 | ParamSet_WriteToEEProm(rxd_buffer[2] - 'l' + 1); |
359 | //SetActiveParamSet(rxd_buffer[2] - 'l' + 1); // is alredy done in ParamSet_WriteToEEProm() |
359 | //SetActiveParamSet(rxd_buffer[2] - 'l' + 1); // is alredy done in ParamSet_WriteToEEProm() |
360 | Umschlag180Nick = (int32_t) ParamSet.WinkelUmschlagNick * 2500L; |
360 | Umschlag180Nick = (int32_t) ParamSet.WinkelUmschlagNick * 2500L; |