Skip to content

Commit

Permalink
Use latest gcc & fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
erichelgeson committed Nov 4, 2022
1 parent 6b63f9a commit 844587a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ default_envs = BlueSCSI_RP2040
; BlueSCSI RP2040 hardware platform, based on the Raspberry Pi foundation RP2040 microcontroller
[env:BlueSCSI_RP2040]
platform = raspberrypi
platform_packages = platformio/[email protected]
framework = arduino
board = BlueSCSI_RP2040
extra_scripts = src/build_bootloader.py
Expand Down
3 changes: 2 additions & 1 deletion src/BlueSCSI_disk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ static image_config_t g_DiskImages[S2S_MAX_TARGETS];

void scsiDiskResetImages()
{
memset(g_DiskImages, 0, sizeof(g_DiskImages));
for(int i = 0; i < S2S_MAX_TARGETS; i++)
g_DiskImages[i] = image_config_t();
}

// Verify format conformance to SCSI spec:
Expand Down

0 comments on commit 844587a

Please sign in to comment.