Rev 366 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 366 | Rev 373 | ||
---|---|---|---|
Line 218... | Line 218... | ||
218 | // Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
218 | // Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
219 | Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
219 | Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
220 | if(tmp_char_arr2[0] != 0xff) |
220 | if(tmp_char_arr2[0] != 0xff) |
221 | { |
221 | { |
222 | if(tmp_char_arr2[0] > 5) tmp_char_arr2[0] = 5; |
222 | if(tmp_char_arr2[0] > 5) tmp_char_arr2[0] = 5; |
223 | ReadParameterSet(tmp_char_arr2[0], (unsigned char *) &EE_Parameter.Kanalbelegung[0], STRUCT_PARAM_LAENGE); |
223 | ReadParameterSet(tmp_char_arr2[0], (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
224 | SendOutData('L' + tmp_char_arr2[0] -1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],STRUCT_PARAM_LAENGE); |
224 | SendOutData('L' + tmp_char_arr2[0] -1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
225 | } |
225 | } |
226 | else |
226 | else |
227 | SendOutData('L' + GetActiveParamSetNumber()-1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],STRUCT_PARAM_LAENGE); |
227 | SendOutData('L' + GetActiveParamSetNumber()-1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
Line 228... | Line 228... | ||
228 | 228 | ||
Line 229... | Line 229... | ||
229 | break; |
229 | break; |
230 | 230 | ||
231 | case 'l': |
231 | case 'l': |
232 | case 'm': |
232 | case 'm': |
233 | case 'n': |
233 | case 'n': |
234 | case 'o': |
234 | case 'o': |
235 | case 'p': // Parametersatz speichern |
235 | case 'p': // Parametersatz speichern |
236 | Decode64((unsigned char *) &EE_Parameter.Kanalbelegung[0],STRUCT_PARAM_LAENGE,3,AnzahlEmpfangsBytes); |
236 | Decode64((unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct),3,AnzahlEmpfangsBytes); |
237 | WriteParameterSet(RxdBuffer[2] - 'l' + 1, (unsigned char *) &EE_Parameter.Kanalbelegung[0], STRUCT_PARAM_LAENGE); |
237 | WriteParameterSet(RxdBuffer[2] - 'l' + 1, (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
238 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], RxdBuffer[2] - 'l' + 1); // aktiven Datensatz merken |
238 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], RxdBuffer[2] - 'l' + 1); // aktiven Datensatz merken |