| 717 | } |
| 718 | |
| 719 | static void cmd_set_drive(struct set_drive_frame* f) |
| 720 | { |
| 721 | if (drive0_present && !drive1_present) |
| 722 | f->drive = 0; |
| 723 | if (drive1_present && !drive0_present) |
| 724 | f->drive = 1; |
| 725 | set_drive_flags(f); |
| 726 | |
| 727 | DECLARE_REPLY_FRAME(struct any_frame, F_FRAME_SET_DRIVE_REPLY); |
| 728 | send_reply((struct any_frame*) &r); |
| 729 | } |
| 730 | |
| 731 | static uint16_t read_output_voltage_mv(void) |
| 732 | { |
no test coverage detected