Skip to content

Commit

Permalink
[coco][fuji] get device filename
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Dec 20, 2023
1 parent 212fec0 commit 071e1fd
Showing 1 changed file with 10 additions and 30 deletions.
40 changes: 10 additions & 30 deletions lib/device/drivewire/fuji.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1375,39 +1375,19 @@ void drivewireFuji::set_device_filename()
// Get a 256 byte filename from device slot
void drivewireFuji::get_device_filename()
{
// char tmp[MAX_FILENAME_LEN];
// unsigned char err = false;

// // AUX1 is the desired device slot
// uint8_t slot = cmdFrame.aux1;

// if (slot > 7)
// {
// err = true;
// }

// memcpy(tmp, _fnDisks[cmdFrame.aux1].filename, MAX_FILENAME_LEN);
// bus_to_computer((uint8_t *)tmp, MAX_FILENAME_LEN, err);
}

// Set an external clock rate in kHz defined by aux1/aux2, aux2 in steps of 2kHz.
void drivewireFuji::set_drivewire_external_clock()
{
// unsigned short speed = drivewire_get_aux();
// int baudRate = speed * 1000;
char tmp[MAX_FILENAME_LEN];
unsigned char err = false;

// Debug_printf("drivewireFuji::set_external_clock(%u)\n", baudRate);
// AUX1 is the desired device slot
uint8_t slot = fnUartBUS.read();

// if (speed == 0)
// {
// DRIVEWIRE.setUltraHigh(false, 0);
// }
// else
// {
// DRIVEWIRE.setUltraHigh(true, baudRate);
// }
if (slot > 7)
{
err = true;
}

// drivewire_complete();
memcpy(tmp, _fnDisks[slot].filename, MAX_FILENAME_LEN);
fnUartBUS.write((uint8_t *)tmp, MAX_FILENAME_LEN);
}

// Mounts the desired boot disk number
Expand Down

0 comments on commit 071e1fd

Please sign in to comment.