mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 04:41:26 +04:00
[IR] universal remote additions (#3922)
* multiple new additions Hisense K321UW, Soniq E55V13A, Soniq E32W13B and 2 others * updated with proper names Viano STV65UHD4K Hisense K321UW Hisense EN2B27 Soniq E55V13A Soniq E32W13B * format tv.ir * Update tv.ir * new universal ac additions Maytag M6X06F2A Panasonic CS-E9HKR * new universal audio additions Sony MHC_GSX75 Elac EA101EQ-G Philips FW750C Pioneer VSX-D1-S * remove final # audio.ir * Scripts: update deprecated methods use in python scripts * Scripts: add comment reading support to fff, preserve comments in infrared cleanup script * Scripts: improved infrared files cleanup script * Scripts: add missing new line at the end of file in infrared file cleanup script * Infrared: cleanup universal remotes Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -152,7 +152,7 @@ class Main(App):
|
||||
return 3
|
||||
|
||||
if not self.layout_check(updater_stage_size, dfu_size, radio_addr):
|
||||
self.logger.warn("Memory layout looks suspicious")
|
||||
self.logger.warning("Memory layout looks suspicious")
|
||||
if self.args.disclaimer != "yes":
|
||||
self.show_disclaimer()
|
||||
return 2
|
||||
@@ -205,7 +205,7 @@ class Main(App):
|
||||
|
||||
def layout_check(self, stage_size, fw_size, radio_addr):
|
||||
if stage_size > self.UPDATER_SIZE_THRESHOLD:
|
||||
self.logger.warn(
|
||||
self.logger.warning(
|
||||
f"Updater size {stage_size}b > {self.UPDATER_SIZE_THRESHOLD}b and is not loadable on older firmwares!"
|
||||
)
|
||||
|
||||
@@ -217,13 +217,13 @@ class Main(App):
|
||||
self.logger.debug(f"Expected reserved space size: {fw2stack_gap}")
|
||||
fw2stack_gap_pages = fw2stack_gap / self.FLASH_PAGE_SIZE
|
||||
if fw2stack_gap_pages < 0:
|
||||
self.logger.warn(
|
||||
self.logger.warning(
|
||||
f"Firmware image overlaps C2 region and is not programmable!"
|
||||
)
|
||||
return False
|
||||
|
||||
elif fw2stack_gap_pages < self.MIN_GAP_PAGES:
|
||||
self.logger.warn(
|
||||
self.logger.warning(
|
||||
f"Expected reserved flash size is too small (~{int(fw2stack_gap_pages)} page(s), need >={self.MIN_GAP_PAGES} page(s))"
|
||||
)
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user