Index: tools/build_common_defs.py =================================================================== diff -u -rf053467ac7cfb9fe349e394342d3a9253a377403 -r0514a69831286e4727429f57e046f71e73e78110 --- tools/build_common_defs.py (.../build_common_defs.py) (revision f053467ac7cfb9fe349e394342d3a9253a377403) +++ tools/build_common_defs.py (.../build_common_defs.py) (revision 0514a69831286e4727429f57e046f71e73e78110) @@ -5,7 +5,7 @@ # THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN # WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. # -# @file build_alarm_defs.py +# @file build_common_defs.py # # @author (last) Peter Lucia # @date (last) 05-Apr-2021 @@ -71,7 +71,7 @@ print("Error reading in txt file: {0}".format(e)) return False - heapq.heapify(enums) + # TODO: match fw order current_time = datetime.now() code_header = \ @@ -103,8 +103,7 @@ # pop the enums from the min heap until its empty code = "" - while enums: - enum = heapq.heappop(enums) + for enum in enums: code += " {0} = {1}\n".format(enum[1], enum[0]) code_result += code