MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / cmd_set_drive

Function cmd_set_drive

FluxEngine.cydsn/main.c:719–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717}
718
719static 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
731static uint16_t read_output_voltage_mv(void)
732{

Callers 1

handle_commandFunction · 0.85

Calls 2

set_drive_flagsFunction · 0.85
send_replyFunction · 0.85

Tested by

no test coverage detected