Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp32: fix warnings in preparation for ESP-IDF upgrade #28196

Merged
merged 2 commits into from
Sep 23, 2024
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 libraries/AP_Filesystem/AP_Filesystem_ESP32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ int AP_Filesystem_ESP32::close(int fd)
return ::close(fd);
}

ssize_t AP_Filesystem_ESP32::read(int fd, void *buf, size_t count)
int32_t AP_Filesystem_ESP32::read(int fd, void *buf, uint32_t count)
{
#if FSDEBUG
printf("DO read \n");
#endif
return ::read(fd, buf, count);
}

ssize_t AP_Filesystem_ESP32::write(int fd, const void *buf, size_t count)
int32_t AP_Filesystem_ESP32::write(int fd, const void *buf, uint32_t count)
{
#if FSDEBUG
printf("DO write \n");
Expand Down
2 changes: 1 addition & 1 deletion libraries/SITL/SIM_EFI_MegaSquirt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void EFI_MegaSquirt::update()
if (crc == crc2) {
send_table();
} else {
printf("BAD EFI CRC: 0x%08x 0x%08x\n", crc, crc2);
printf("BAD EFI CRC: 0x%08x 0x%08x\n", (unsigned int)crc, (unsigned int)crc2);
}
ofs = 0;
}
Expand Down
Loading