equal
deleted
inserted
replaced
191 fsm->state = ec_fsm_pdo_entry_state_error; |
191 fsm->state = ec_fsm_pdo_entry_state_error; |
192 return; |
192 return; |
193 } |
193 } |
194 |
194 |
195 if (fsm->request.data_size != sizeof(uint8_t)) { |
195 if (fsm->request.data_size != sizeof(uint8_t)) { |
196 EC_ERR("Invalid data size %u at uploading SDO 0x%04X:%02X.\n", |
196 EC_ERR("Invalid data size %zu at uploading SDO 0x%04X:%02X.\n", |
197 fsm->request.data_size, fsm->request.index, |
197 fsm->request.data_size, fsm->request.index, |
198 fsm->request.subindex); |
198 fsm->request.subindex); |
199 fsm->state = ec_fsm_pdo_entry_state_error; |
199 fsm->state = ec_fsm_pdo_entry_state_error; |
200 return; |
200 return; |
201 } |
201 } |
246 fsm->state = ec_fsm_pdo_entry_state_error; |
246 fsm->state = ec_fsm_pdo_entry_state_error; |
247 return; |
247 return; |
248 } |
248 } |
249 |
249 |
250 if (fsm->request.data_size != sizeof(uint32_t)) { |
250 if (fsm->request.data_size != sizeof(uint32_t)) { |
251 EC_ERR("Invalid data size %u at uploading SDO 0x%04X:%02X.\n", |
251 EC_ERR("Invalid data size %zu at uploading SDO 0x%04X:%02X.\n", |
252 fsm->request.data_size, fsm->request.index, |
252 fsm->request.data_size, fsm->request.index, |
253 fsm->request.subindex); |
253 fsm->request.subindex); |
254 fsm->state = ec_fsm_pdo_entry_state_error; |
254 fsm->state = ec_fsm_pdo_entry_state_error; |
255 } else { |
255 } else { |
256 uint32_t pdo_entry_info; |
256 uint32_t pdo_entry_info; |