diff --git a/libraries/AP_Scripting/docs/docs.lua b/libraries/AP_Scripting/docs/docs.lua index 3208c6ac22..8a8db7001b 100644 --- a/libraries/AP_Scripting/docs/docs.lua +++ b/libraries/AP_Scripting/docs/docs.lua @@ -3411,6 +3411,10 @@ function fs:format() end ---@return number function fs:get_format_status() end +-- Get crc32 checksum of a file with given name +---@return uint32_t_ud|nil +function fs:crc32(file_name) end + -- desc ---@class networking networking = {} diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index be65f4da50..5f4458985f 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -895,6 +895,7 @@ singleton AP_Filesystem method format boolean singleton AP_Filesystem method format depends AP_FILESYSTEM_FORMAT_ENABLED singleton AP_Filesystem method get_format_status uint8_t'skip_check singleton AP_Filesystem method get_format_status depends AP_FILESYSTEM_FORMAT_ENABLED +singleton AP_Filesystem method crc32 boolean string uint32_t'Null include AP_RTC/AP_RTC.h depends AP_RTC_ENABLED include AP_RTC/AP_RTC_config.h