void get_current_consumption(const ComType com, const GetCurrentConsumption *data) { GetCurrentConsumptionReturn gccr; gccr.header = data->header; gccr.header.length = sizeof(GetCurrentConsumptionReturn); gccr.current = stepper_get_current(); send_blocking_with_timeout(&gccr, sizeof(GetCurrentConsumptionReturn), com); }
void get_current_consumption(uint8_t com, const GetCurrentConsumption *data) { GetCurrentConsumptionReturn gccr; gccr.stack_address = data->stack_address; gccr.type = data->type; gccr.length = sizeof(GetCurrentConsumptionReturn); gccr.current = stepper_get_current(); send_blocking_with_timeout(&gccr, sizeof(GetCurrentConsumptionReturn), com); }