Skip to content

Commit

Permalink
Mac error fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven committed Jan 12, 2020
1 parent b0c675c commit 86c4e95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/usb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ void usbSetDrive(int drive, bool high_density, int index_mode)

struct set_drive_frame f = {
{ .type = F_FRAME_SET_DRIVE_CMD, .size = sizeof(f) },
.drive = drive,
.drive = (uint8_t) drive,
.high_density = high_density,
.index_mode = index_mode
.index_mode = (uint8_t) index_mode
};
usb_cmd_send(&f, f.f.size);
await_reply<struct any_frame>(F_FRAME_SET_DRIVE_REPLY);
Expand Down

0 comments on commit 86c4e95

Please sign in to comment.