From: Gerhard Sittig Date: Sat, 19 Feb 2022 12:34:25 +0000 (+0100) Subject: sigrok-fwextract-kingst-la2016: rephrase resource file writer X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=896d66ee00c57705d7d464f9137e239bbde9ab17;hp=896d66ee00c57705d7d464f9137e239bbde9ab17;p=sigrok-util.git sigrok-fwextract-kingst-la2016: rephrase resource file writer Rearrange the res_writer class of the KingstVis firmware extractor. Separate the bytes/hexfile handling from file writing. Get the CRC in that data handing part. Which leaves data processing to internal helpers, while the calling public routine has all details available, to provide a more helpful log message to users. Separate the resource enumeration from the output file creation. Which prettifies the output (sorted order), and allows future implementations to easier filter the output if desired. ---