Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ jobs:
with:
release: '9-2019-q4'
- name: Setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: '3.14'
- name: Build Library
run: make -j
- name: Build Examples
Expand Down
7 changes: 5 additions & 2 deletions src/util/WavWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,11 @@ class WavWriter
if(remaining_size > max_bytes)
remaining_size = max_bytes;

uint8_t *base = reinterpret_cast<uint8_t *>(transfer_buff);
f_write(&fp_, base + offset_bytes, remaining_size, &bw);
if(remaining_size > 0)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like technically this change isn't required for the CI fix, but it seems like a value add.

{
uint8_t *base = reinterpret_cast<uint8_t *>(transfer_buff);
f_write(&fp_, base + offset_bytes, remaining_size, &bw);
}
}

// 3. Finalize header and close
Expand Down
3 changes: 2 additions & 1 deletion tests/FatFsMock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ FRESULT f_write(FIL* fp, const void* buff, UINT btw, UINT* bw)
if(state.file_data.size() < end_idx)
state.file_data.resize(end_idx, 0);

std::memcpy(&state.file_data[start_idx], buff, static_cast<size_t>(btw));
if(btw > 0)
std::memcpy(&state.file_data[start_idx], buff, static_cast<size_t>(btw));
state.cursor += btw;
if(bw)
*bw = btw;
Expand Down
Loading