AP_Scripting: add file system crc32 binding

This commit is contained in:
Iampete1 2024-02-13 19:28:05 +00:00 committed by Andrew Tridgell
parent e15f9d3f39
commit 46e4588cf7
2 changed files with 5 additions and 0 deletions

View File

@ -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 = {}

View File

@ -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