From 8204ff4d7c5efd88fa881173f3b8f7c440091525 Mon Sep 17 00:00:00 2001 From: ARg Date: Wed, 11 Sep 2024 11:56:18 +0200 Subject: [PATCH] AP_Filesystem: fix esp32 function datatypes Make them match the superclass and the header file. --- libraries/AP_Filesystem/AP_Filesystem_ESP32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Filesystem/AP_Filesystem_ESP32.cpp b/libraries/AP_Filesystem/AP_Filesystem_ESP32.cpp index 9cb031d867..9f71c8d281 100644 --- a/libraries/AP_Filesystem/AP_Filesystem_ESP32.cpp +++ b/libraries/AP_Filesystem/AP_Filesystem_ESP32.cpp @@ -42,7 +42,7 @@ 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"); @@ -50,7 +50,7 @@ ssize_t AP_Filesystem_ESP32::read(int fd, void *buf, size_t 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 printf("DO write \n");