From 7073aa6d0fd260e36dfdfcfe3a7857d079971b75 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Mon, 15 May 2023 20:18:49 +1000 Subject: [PATCH] Fix cover count --- tools/assetmgr/mkpads | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/assetmgr/mkpads b/tools/assetmgr/mkpads index cbf17f016..b70a9afd5 100755 --- a/tools/assetmgr/mkpads +++ b/tools/assetmgr/mkpads @@ -86,7 +86,7 @@ class App(): output = bytes() output += len(self.json['pads']).to_bytes(4, 'big') - output += len(self.json['cover']).to_bytes(4, 'big') + output += len([c for c in self.json['cover'] if not c['special']]).to_bytes(4, 'big') output += waypoints_start.to_bytes(4, 'big') output += waygroups_start.to_bytes(4, 'big') output += cover_start.to_bytes(4, 'big')