Repository Analysis

portapack-mayhem/mayhem-firmware

The firmware for the HackRF+PortaPack H1/H2/H4/H4M

4.9 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of portapack-mayhem/mayhem-firmware, a C project with 5,246 GitHub stars. SynthScan v2.0 examined 792,638 lines of code across 2924 source files, recording 4960 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 4.9 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

4.9
Adjusted Score
4.9
Raw Score
100%
Time Factor
2026-07-11
Last Push
5.2K
Stars
C
Language
792.6K
Lines of Code
2.9K
Files
5.0K
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 0MEDIUM 50LOW 4910

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 4960 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block4808 hits · 3606 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1# Copyright 2016 Jared Boone <jared@sharebrained.com>COMMENT
LOWdockerize.sh1#!/bin/bashCOMMENT
LOWdockerize.sh21# Change the default build directory: ./dockerize.sh -B build-altCOMMENT
LOWdockerize.sh41#COMMENT
LOWsdcard/LOOKINGGLASS/DECT.TXT1# INI,END,DESCRIPTIONCOMMENT
LOWsdcard/LOOKINGGLASS/MICS.TXT1# INI,END,DESCRIPTIONCOMMENT
LOWsdcard/LOOKINGGLASS/MARINE_BAND.TXT1# INI,END,DESCRIPTIONCOMMENT
LOWsdcard/LOOKINGGLASS/MULTI_USE_RADIO_SERVICE_MURS.TXT1# INI,END,DESCRIPTIONCOMMENT
LOWsdcard/LOOKINGGLASS/WIFI.TXT1# INI,END,DESCRIPTIONCOMMENT
LOWsdcard/LOOKINGGLASS/433_MHz_BAND.TXT1# INI,END,DESCRIPTIONCOMMENT
LOWsdcard/LOOKINGGLASS/AUS_UHF_CB.TXT1# INI,END,DESCRIPTIONCOMMENT
LOWsdcard/LOOKINGGLASS/RAILROAD.TXT1# INI,END,DESCRIPTIONCOMMENT
LOWsdcard/LOOKINGGLASS/RADIOSONDES.TXT1# INI,END,DESCRIPTIONCOMMENT
LOWsdcard/LOOKINGGLASS/COMMON_PUBLIC_SERVICE_BANDS.TXT1# INI,END,DESCRIPTIONCOMMENT
LOWsdcard/LOOKINGGLASS/FULL.TXT1# INI,END,DESCRIPTIONCOMMENT
LOWsdcard/LOOKINGGLASS/CITIZENS_BAND_RADIO.TXT1# INI,END,DESCRIPTIONCOMMENT
LOWsdcard/LOOKINGGLASS/NOAA_WEATHER_RADIO.TXT1# INI,END,DESCRIPTIONCOMMENT
LOWsdcard/LOOKINGGLASS/WATER_METERS.TXT1# INI,END,DESCRIPTIONCOMMENT
LOWsdcard/LOOKINGGLASS/FRSGMRS.TXT1# INI,END,DESCRIPTIONCOMMENT
LOWsdcard/LOOKINGGLASS/CubeSats.TXT1# INI,END,DESCRIPTIONCOMMENT
LOWfirmware/CMakeLists.txt1# Copyright 2016 Jared Boone <jared@sharebrained.com>COMMENT
LOWfirmware/chibios/test/test.h41COMMENT
LOWfirmware/chibios/test/test.c21 * @addtogroup testCOMMENT
LOWfirmware/chibios/testhal/SPC560Pxx/PWM-ICU/mcuconf.h141#define SPC5_ME_LP_PC5_BITS (SPC5_ME_LP_PC_HALT0 | \COMMENT
LOWfirmware/chibios/testhal/SPC560Pxx/PWM-ICU/mcuconf.h161#define SPC5_SERIAL_LINFLEX1_START_PCTL (SPC5_ME_PCTL_RUN(1) | \COMMENT
LOWfirmware/chibios/testhal/SPC560Pxx/PWM-ICU/mcuconf.h181COMMENT
LOWfirmware/chibios/testhal/SPC560Pxx/PWM-ICU/mcuconf.h201#define SPC5_ICU_USE_SMOD10 FALSECOMMENT
LOWfirmware/chibios/testhal/SPC563Mxx/ADC/mcuconf.h41 BIUCR_MASTER0_PREFETCH | \COMMENT
LOWfirmware/chibios/testhal/SPC563Mxx/ADC/mcuconf.h81#define SPC5_USE_ESCIA TRUECOMMENT
LOWfirmware/chibios/testhal/LPC13xx/IRQ_STORM/main.c21COMMENT
LOWfirmware/chibios/testhal/LPC13xx/IRQ_STORM/mcuconf.h61/*COMMENT
LOWfirmware/chibios/testhal/STM32F0xx/PWM-ICU/mcuconf.h41#define STM32_LSI_ENABLED TRUECOMMENT
LOWfirmware/chibios/testhal/STM32F0xx/PWM-ICU/mcuconf.h81#define STM32_GPT_USE_TIM2 FALSECOMMENT
LOWfirmware/chibios/testhal/STM32F0xx/PWM-ICU/mcuconf.h101 * ICU driver system settings.COMMENT
LOWfirmware/chibios/testhal/STM32F0xx/PWM-ICU/mcuconf.h121/*COMMENT
LOWfirmware/chibios/testhal/STM32F0xx/PWM-ICU/mcuconf.h141 * UART driver system settings.COMMENT
LOWfirmware/chibios/testhal/STM32F0xx/EXT/mcuconf.h41#define STM32_LSI_ENABLED TRUECOMMENT
LOWfirmware/chibios/testhal/STM32F0xx/EXT/mcuconf.h81#define STM32_GPT_USE_TIM2 FALSECOMMENT
LOWfirmware/chibios/testhal/STM32F0xx/EXT/mcuconf.h101 * ICU driver system settings.COMMENT
LOWfirmware/chibios/testhal/STM32F0xx/EXT/mcuconf.h121/*COMMENT
LOWfirmware/chibios/testhal/STM32F0xx/EXT/mcuconf.h141 * UART driver system settings.COMMENT
LOWfirmware/chibios/testhal/STM32F0xx/IRQ_STORM/main.c21COMMENT
LOWfirmware/chibios/testhal/STM32F0xx/IRQ_STORM/mcuconf.h41#define STM32_LSI_ENABLED TRUECOMMENT
LOWfirmware/chibios/testhal/STM32F0xx/IRQ_STORM/mcuconf.h81#define STM32_GPT_USE_TIM2 TRUECOMMENT
LOWfirmware/chibios/testhal/STM32F0xx/IRQ_STORM/mcuconf.h101 * ICU driver system settings.COMMENT
LOWfirmware/chibios/testhal/STM32F0xx/IRQ_STORM/mcuconf.h121/*COMMENT
LOWfirmware/chibios/testhal/STM32F0xx/IRQ_STORM/mcuconf.h141 * UART driver system settings.COMMENT
LOWfirmware/chibios/testhal/STM32F0xx/SPI/mcuconf.h41#define STM32_LSI_ENABLED TRUECOMMENT
LOWfirmware/chibios/testhal/STM32F0xx/SPI/mcuconf.h81#define STM32_GPT_USE_TIM2 FALSECOMMENT
LOWfirmware/chibios/testhal/STM32F0xx/SPI/mcuconf.h101 * ICU driver system settings.COMMENT
LOWfirmware/chibios/testhal/STM32F0xx/SPI/mcuconf.h121/*COMMENT
LOWfirmware/chibios/testhal/STM32F0xx/SPI/mcuconf.h141 * UART driver system settings.COMMENT
LOWfirmware/chibios/testhal/STM32F0xx/ADC/mcuconf.h41#define STM32_LSI_ENABLED TRUECOMMENT
LOWfirmware/chibios/testhal/STM32F0xx/ADC/mcuconf.h81#define STM32_GPT_USE_TIM2 FALSECOMMENT
LOWfirmware/chibios/testhal/STM32F0xx/ADC/mcuconf.h101 * ICU driver system settings.COMMENT
LOWfirmware/chibios/testhal/STM32F0xx/ADC/mcuconf.h121/*COMMENT
LOWfirmware/chibios/testhal/STM32F0xx/ADC/mcuconf.h141 * UART driver system settings.COMMENT
LOWfirmware/chibios/testhal/STM32F0xx/UART/mcuconf.h41#define STM32_LSI_ENABLED TRUECOMMENT
LOWfirmware/chibios/testhal/STM32F0xx/UART/mcuconf.h81#define STM32_GPT_USE_TIM2 FALSECOMMENT
LOWfirmware/chibios/testhal/STM32F0xx/UART/mcuconf.h101 * ICU driver system settings.COMMENT
4748 more matches not shown…
Decorative Section Separators21 hits · 63 pts
SeverityFileLineSnippetContext
MEDIUM…/chibios/demos/ARMCM0P-LPC812-LPCXPRESSO/lpc8xx_isp.py5#=========================================================COMMENT
MEDIUM…/chibios/demos/ARMCM0P-LPC812-LPCXPRESSO/lpc8xx_isp.py14#=========================================================COMMENT
MEDIUM…/chibios/demos/ARMCM0P-LPC812-LPCXPRESSO/lpc8xx_isp.py28#=========================================================COMMENT
MEDIUM…/chibios/demos/ARMCM0P-LPC812-LPCXPRESSO/lpc8xx_isp.py44#=========================================================COMMENT
MEDIUM…/chibios/demos/ARMCM0P-LPC812-LPCXPRESSO/lpc8xx_isp.py102#=========================================================COMMENT
MEDIUM…/chibios/demos/ARMCM0P-LPC812-LPCXPRESSO/lpc8xx_isp.py137#=========================================================COMMENT
MEDIUM…/chibios/demos/ARMCM0P-LPC812-LPCXPRESSO/lpc8xx_isp.py138#=========================================================COMMENT
MEDIUMfirmware/tools/make_macaddress_db/make_macaddress_db.py19# -------------------------------------------------------------------------------------COMMENT
MEDIUMfirmware/tools/make_macaddress_db/make_macaddress_db.py22# -------------------------------------------------------------------------------------COMMENT
MEDIUMfirmware/tools/make_airlines_db/make_airlines_db.py20# -------------------------------------------------------------------------------------COMMENT
MEDIUMfirmware/tools/make_airlines_db/make_airlines_db.py24# -------------------------------------------------------------------------------------COMMENT
MEDIUMfirmware/tools/make_icao24_db/make_icao24_db.py22# -------------------------------------------------------------------------------------COMMENT
MEDIUMfirmware/tools/make_icao24_db/make_icao24_db.py26# -------------------------------------------------------------------------------------COMMENT
MEDIUMfirmware/tools/make_mids_db/make_mid_db.py21# -------------------------------------------------------------------------------------COMMENT
MEDIUMfirmware/tools/make_mids_db/make_mid_db.py27# -------------------------------------------------------------------------------------COMMENT
MEDIUM…re/application/external/two_tone_rx/ui_two_tone_rx.hpp102 // ── Two-tone detection state machine ─────────────────────────────────────COMMENT
MEDIUM…re/application/external/two_tone_rx/ui_two_tone_rx.hpp138 // ── Row 0: frequency + RF controls ───────────────────────────────────────COMMENT
MEDIUM…re/application/external/two_tone_rx/ui_two_tone_rx.hpp154 // ── Row 1: CTCSS / Squelch / Start+Stop / Clear ──────────────────────────COMMENT
MEDIUM…re/application/external/two_tone_rx/ui_two_tone_rx.hpp181 // ── Row 2: live status (active tone in progress) + Bias-T toggle ─────────COMMENT
MEDIUM…re/application/external/two_tone_rx/ui_two_tone_rx.hpp198 // ── Waterfall (rest of screen) ────────────────────────────────────────────COMMENT
MEDIUM…re/application/external/two_tone_rx/ui_two_tone_rx.hpp202 // ── Message handler ───────────────────────────────────────────────────────COMMENT
Verbosity Indicators36 hits · 58 pts
SeverityFileLineSnippetContext
LOWfirmware/chibios/os/hal/platforms/Posix/pal_lld.h151 * @details The purpose of this function is to read back the latched outputCOMMENT
LOWfirmware/chibios/os/hal/platforms/LPC11Uxx/pal_lld.h140 * @details The purpose of this function is to read back the latched outputCOMMENT
LOWfirmware/chibios/os/hal/platforms/AVR/pal_lld.h240 * @details The purpose of this function is to read back the latched outputCOMMENT
LOWfirmware/chibios/os/hal/platforms/LPC8xx/pal_lld.h129 * @details The purpose of this function is to read back the latched outputCOMMENT
LOW…ware/chibios/os/hal/platforms/SPC5xx/SIUL_v1/pal_lld.h248 * @details The purpose of this function is to read back the latched outputCOMMENT
LOW…mware/chibios/os/hal/platforms/SPC5xx/SIU_v1/pal_lld.h242 * @details The purpose of this function is to read back the latched outputCOMMENT
LOWfirmware/chibios/os/hal/platforms/LPC13xx/pal_lld.h156 * @details The purpose of this function is to read back the latched outputCOMMENT
LOWfirmware/chibios/os/hal/platforms/LPC122x/pal_lld.h151 * @details The purpose of this function is to read back the latched outputCOMMENT
LOWfirmware/chibios/os/hal/platforms/Win32/pal_lld.h151 * @details The purpose of this function is to read back the latched outputCOMMENT
LOWfirmware/chibios/os/hal/platforms/LPC11xx/pal_lld.h156 * @details The purpose of this function is to read back the latched outputCOMMENT
LOWfirmware/chibios/os/hal/include/pal.h236 * @details The purpose of this function is to read back the latched outputCOMMENT
LOWfirmware/chibios/os/hal/templates/pal_lld.h117 * @details The purpose of this function is to read back the latched outputCOMMENT
LOWfirmware/common/utility.cpp97 // Step 1: Normalize IQ values (convert 8-bit signed to -1.0 to +1.0)COMMENT
LOWfirmware/common/utility.cpp101 // Step 2: Compute the magnitude squared (I^2 + Q^2)COMMENT
LOWfirmware/common/utility.cpp104 // Step 3: Convert the magnitude squared to actual power (in watts)COMMENT
LOWfirmware/common/utility.cpp108 // Step 4: Convert the power to dBm (multiply by 1000 to convert watts to milliwatts)COMMENT
LOWfirmware/application/apps/ui_debug.cpp1203 // Step 1: InitCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1208 // Step 2: Set sample rate (configures Si5351 clocks!)COMMENT
LOWfirmware/application/apps/ui_debug.cpp1212 // Step 3: RX modeCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1216 // Step 4: Frequency - use 2437 MHz (WiFi ch6) which is in MAX2831 rangeCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1222 // Step 5: Configure SGPIO outputs with correct DISABLE sequenceCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1469 // Step 7: Enable slice A counter (keep slice D enabled) - still with DISABLE=HIGHCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1479 // Step 8: Enable streaming (DISABLE=LOW) - THIS IS THE CRITICAL TESTCOMMENT
LOWfirmware/application/apps/ui_debug.cpp2965 // Step 1: Read current valueCOMMENT
LOWfirmware/application/apps/ui_debug.cpp2968 // Step 2: Write a different value (change ENBL bit to toggle)COMMENT
LOWfirmware/application/apps/ui_debug.cpp2972 // Step 3: Read backCOMMENT
LOWfirmware/application/apps/ui_debug.cpp2975 // Step 4: Restore originalCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1237 // Step 6: Check raw GPIO pinsCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1311 // Step 0: Baseline with DISABLE=HIGH firstCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1336 // Step 1: OUT_MUX_CFG data pins - test individuallyCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1360 // Step 2: OUT_MUX_CFG control pins - SKIP PIN 10 (HOST_DISABLE)COMMENT
LOWfirmware/application/apps/ui_debug.cpp1394 // Step 3: Set GPIO_OENREG for RXCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1429 // Step 4: SGPIO_MUX_CFG slice ACOMMENT
LOWfirmware/application/apps/ui_debug.cpp1441 // Step 5: SLICE_MUX_CFG slice ACOMMENT
LOWfirmware/application/apps/ui_debug.cpp1453 // Step 6: Slice A registersCOMMENT
LOW…e/chibios-portapack/os/hal/platforms/LPC43xx/pal_lld.h176 * @details The purpose of this function is to read back the latched outputCOMMENT
Self-Referential Comments16 hits · 48 pts
SeverityFileLineSnippetContext
MEDIUMdockerize.sh40# This file is part of PortaPack.COMMENT
MEDIUMfirmware/tools/export_external_apps.py7# This file is part of PortaPack.COMMENT
MEDIUMfirmware/tools/simple_checksum.py6# This file is part of PortaPack.COMMENT
MEDIUMfirmware/tools/copy_external_apps.sh6# This file is part of PortaPack.COMMENT
MEDIUM…ware/tools/check_external_app_linker_script_correct.py6# This file is part of PortaPack.COMMENT
MEDIUMfirmware/tools/extract_cpld_data.py6# This file is part of PortaPack.COMMENT
MEDIUMfirmware/tools/make_spi_image.py8# This file is part of PortaPack.COMMENT
MEDIUMfirmware/tools/check_gcc_version_from_elf.py6# This file is part of PortaPack.COMMENT
MEDIUMfirmware/tools/check_for_shared_external_code.py6# This file is part of PortaPack.COMMENT
MEDIUMfirmware/tools/fast_flash_pp_and_copy_apps.py3# This file is part of PortaPack.COMMENT
MEDIUMfirmware/tools/docker-entrypoint.sh6# This file is part of PortaPack.COMMENT
MEDIUMfirmware/tools/make_image_chunk.py6# This file is part of PortaPack.COMMENT
MEDIUMfirmware/tools/widget_preview.py4# This file is part of PortaPack.COMMENT
MEDIUMfirmware/tools/enter_mode.sh6# This file is part of PortaPack.COMMENT
MEDIUMfirmware/tools/external_app_info.py6# This file is part of PortaPack.COMMENT
MEDIUM…rmware/tools/bitmap_tools/bitmap_arr_reverse_decode.py6# This file is part of PortaPack.COMMENT
Excessive Try-Catch Wrapping29 hits · 45 pts
SeverityFileLineSnippetContext
LOW…ware/tools/check_external_app_linker_script_correct.py125 except Exception as e:CODE
LOWfirmware/tools/make_spi_image.py206except Exception as e:STRING
LOWfirmware/tools/fast_flash_pp_and_copy_apps.py55 except Exception as e:CODE
LOWfirmware/tools/fast_flash_pp_and_copy_apps.py78 except Exception as e:CODE
LOWfirmware/tools/fast_flash_pp_and_copy_apps.py255 except Exception as e:CODE
LOWfirmware/tools/fast_flash_pp_and_copy_apps.py268 except Exception as e:CODE
MEDIUMfirmware/tools/fast_flash_pp_and_copy_apps.py129def get_pp_device_linux():CODE
LOWfirmware/tools/make_macaddress_db/make_macaddress_db.py39 except Exception as e:CODE
MEDIUMfirmware/tools/make_macaddress_db/make_macaddress_db.py40 print(f"Error downloading OUI file: {e}")CODE
LOWfirmware/tools/make_macaddress_db/make_macaddress_db.py124 except Exception as e:CODE
MEDIUMfirmware/tools/make_macaddress_db/make_macaddress_db.py125 print(f"Error creating MAC address database: {e}")CODE
LOWfirmware/tools/make_airlines_db/make_airlines_db.py73 except Exception as e:CODE
MEDIUMfirmware/tools/make_airlines_db/make_airlines_db.py74 print(f"Error downloading airline codes file: {e}")CODE
LOWfirmware/tools/make_airlines_db/make_airlines_db.py113 except Exception as e:CODE
LOWfirmware/tools/make_airlines_db/make_airlines_db.py270 except Exception as e:CODE
MEDIUMfirmware/tools/make_airlines_db/make_airlines_db.py271 print(f"Error creating airline database: {e}")CODE
MEDIUMfirmware/tools/bmp_tools/hex_cpp_arr_to_bmp.py30 print("Error: No hex data found.")CODE
LOWfirmware/tools/make_icao24_db/make_icao24_db.py85 except Exception as e:CODE
MEDIUMfirmware/tools/make_icao24_db/make_icao24_db.py86 print(f"Error downloading aircraft database file: {e}")CODE
LOWfirmware/tools/make_icao24_db/make_icao24_db.py130 except Exception as e:CODE
LOWfirmware/tools/make_icao24_db/make_icao24_db.py292 except Exception as e:CODE
MEDIUMfirmware/tools/make_icao24_db/make_icao24_db.py293 print(f"Error creating ICAO24 database: {e}")CODE
MEDIUMfirmware/tools/bitmap_tools/pp_png2hpp.py208 print(f"Error: {hpp_file_path} is not a valid file.")STRING
LOWhardware/portapack_h2m/fonts/_get_font_info.py32 except Exception as e:CODE
MEDIUMhardware/portapack_h2m/fonts/_get_font_info.py33 print(f"Error reading copyright info from {font_file}: {e}")CODE
LOWhardware/portapack_h2m/fonts/_get_font_info.py43 except Exception as e:CODE
MEDIUMhardware/portapack_h2m/fonts/_get_font_info.py44 print(f"Error writing license file for {font_file}: {e}")CODE
MEDIUMhardware/portapack_h2m/fonts/_get_font_info.py19def read_copyright_info(font_file):CODE
MEDIUMhardware/portapack_h2m/fonts/_get_font_info.py36def write_license_file(font_file, copyright_info):CODE
Structural Annotation Overuse23 hits · 39 pts
SeverityFileLineSnippetContext
LOWfirmware/common/utility.cpp97 // Step 1: Normalize IQ values (convert 8-bit signed to -1.0 to +1.0)COMMENT
LOWfirmware/common/utility.cpp101 // Step 2: Compute the magnitude squared (I^2 + Q^2)COMMENT
LOWfirmware/common/utility.cpp104 // Step 3: Convert the magnitude squared to actual power (in watts)COMMENT
LOWfirmware/common/utility.cpp108 // Step 4: Convert the power to dBm (multiply by 1000 to convert watts to milliwatts)COMMENT
LOWfirmware/application/apps/ui_debug.cpp1203 // Step 1: InitCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1208 // Step 2: Set sample rate (configures Si5351 clocks!)COMMENT
LOWfirmware/application/apps/ui_debug.cpp1212 // Step 3: RX modeCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1216 // Step 4: Frequency - use 2437 MHz (WiFi ch6) which is in MAX2831 rangeCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1222 // Step 5: Configure SGPIO outputs with correct DISABLE sequenceCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1469 // Step 7: Enable slice A counter (keep slice D enabled) - still with DISABLE=HIGHCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1479 // Step 8: Enable streaming (DISABLE=LOW) - THIS IS THE CRITICAL TESTCOMMENT
LOWfirmware/application/apps/ui_debug.cpp2965 // Step 1: Read current valueCOMMENT
LOWfirmware/application/apps/ui_debug.cpp2968 // Step 2: Write a different value (change ENBL bit to toggle)COMMENT
LOWfirmware/application/apps/ui_debug.cpp2972 // Step 3: Read backCOMMENT
LOWfirmware/application/apps/ui_debug.cpp2975 // Step 4: Restore originalCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1237 // Step 6: Check raw GPIO pinsCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1311 // Step 0: Baseline with DISABLE=HIGH firstCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1336 // Step 1: OUT_MUX_CFG data pins - test individuallyCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1360 // Step 2: OUT_MUX_CFG control pins - SKIP PIN 10 (HOST_DISABLE)COMMENT
LOWfirmware/application/apps/ui_debug.cpp1394 // Step 3: Set GPIO_OENREG for RXCOMMENT
LOWfirmware/application/apps/ui_debug.cpp1429 // Step 4: SGPIO_MUX_CFG slice ACOMMENT
LOWfirmware/application/apps/ui_debug.cpp1441 // Step 5: SLICE_MUX_CFG slice ACOMMENT
LOWfirmware/application/apps/ui_debug.cpp1453 // Step 6: Slice A registersCOMMENT
Unused Imports10 hits · 10 pts
SeverityFileLineSnippetContext
LOWfirmware/tools/append_fpga_bitstream.py12CODE
LOWfirmware/tools/export_external_apps.py25CODE
LOWfirmware/tools/export_external_apps.py27CODE
LOWfirmware/tools/make_dcs.py23CODE
LOWfirmware/tools/make_dcs.py24CODE
LOWfirmware/tools/simple_checksum.py25CODE
LOWfirmware/tools/generate_world_map.bin.py21CODE
LOWfirmware/tools/generate_world_map.bin.py22CODE
LOWfirmware/tools/bitmap_tools/make_bitmap2.py22CODE
LOWfirmware/tools/bitmap_tools/make_bitmap.py22CODE
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippetContext
LOWfirmware/tools/fast_flash_pp_and_copy_apps.py40CODE
LOWfirmware/tools/fast_flash_pp_and_copy_apps.py129CODE
LOWfirmware/tools/fast_flash_pp_and_copy_apps.py166CODE
LOWfirmware/tools/widget_preview.py135CODE
LOWfirmware/tools/make_macaddress_db/make_macaddress_db.py44CODE
LOWfirmware/tools/make_airlines_db/make_airlines_db.py78CODE
LOWfirmware/tools/make_airlines_db/make_airlines_db.py175CODE
LOWfirmware/tools/make_icao24_db/make_icao24_db.py90CODE
Hyper-Verbose Identifiers4 hits · 3 pts
SeverityFileLineSnippetContext
LOWfirmware/tools/make_spi_image.py149def get_gcc_version_from_elf_files_in_giving_path_or_filename_s_path(path):STRING
LOWfirmware/tools/generate_ui-about-simple.cpp.py161def pp_create_ui_about_simple_cpp(cpp_file, cppheader, cppcontent, cppfooter):STRING
LOWfirmware/tools/generate_ui-about-simple.cpp.py173def pp_change_ui_about_simple_cpp(cpp_file, cppcontent):STRING
LOWfirmware/tools/make_icao24_db/make_icao24_db.py78def download_aircraft_database() -> None:CODE
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWfirmware/application/ui_external_items_menu_loader.cpp357// TODO: implement baseband image supportCOMMENT
LOWfirmware/application/ui_external_items_menu_loader.cpp393// TODO: implement baseband image supportCOMMENT
Slop Phrases2 hits · 2 pts
SeverityFileLineSnippetContext
LOWfirmware/common/i2cdevmanager.hpp47 void set_update_interval(uint8_t interval); // sets the device's update interval in sec. if you change it, don't foCODE
LOWfirmware/baseband/proc_bint_stream_tx.hpp23 For usage check the FlipperTX app. Don't forget to "close" the tx by sending 42069, 613379 values at the end of the CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOW.github/workflows/changelog.py37 # Check if the request was successful (status code 200)COMMENT