AP_Filesystem: fix esp32 function datatypes

Make them match the superclass and the header file.
This commit is contained in:
ARg 2024-09-11 11:56:18 +02:00 committed by Peter Barker
parent 89c2b48286
commit 8204ff4d7c
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ int AP_Filesystem_ESP32::close(int fd)
return ::close(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 #if FSDEBUG
printf("DO read \n"); printf("DO read \n");
@ -50,7 +50,7 @@ ssize_t AP_Filesystem_ESP32::read(int fd, void *buf, size_t count)
return ::read(fd, buf, count); 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 #if FSDEBUG
printf("DO write \n"); printf("DO write \n");