Skip to content

Commit

Permalink
AP_Scripting: add file system crc32 binding
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 committed Feb 14, 2024
1 parent 9cc194b commit 140ba38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/AP_Scripting/docs/docs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_Scripting/generator/description/bindings.desc
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,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
Expand Down

0 comments on commit 140ba38

Please sign in to comment.