Skip to content

Commit

Permalink
[coco][fuji] get host slots to use response.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Apr 29, 2024
1 parent fd56e52 commit ff74618
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Binary file modified data/webui/device_specific/BUILD_COCO/autorun.dsk
Binary file not shown.
7 changes: 4 additions & 3 deletions lib/device/drivewire/fuji.cpp
Expand Up @@ -1071,9 +1071,10 @@ void drivewireFuji::read_host_slots()
for (int i = 0; i < MAX_HOSTS; i++)
strlcpy(hostSlots[i], _fnHosts[i].get_hostname(), MAX_HOSTNAME_LEN);

for (int i = 0; i < MAX_HOSTS; i++)
for (int j = 0; j < MAX_HOSTNAME_LEN; j++)
fnUartBUS.write(hostSlots[i][j]);
response.clear();
response.shrink_to_fit();

response = std::string((const char *)hostSlots,256);
}

// Read and save host slot data from computer
Expand Down

0 comments on commit ff74618

Please sign in to comment.