Skip to content

Commit

Permalink
scripts/gen_target: remove unused parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
paradajz committed Jan 10, 2022
1 parent 1ceafb4 commit 8e3ac0f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions scripts/gen_target.sh
Original file line number Diff line number Diff line change
Expand Up @@ -910,20 +910,6 @@ then
printf "%s\n" "DEFINES += ADC_EXT_REF" >> "$OUT_FILE_MAKEFILE_DEFINES"
fi

declare -i offset_lower
declare -i offset_upper

offset_lower=0
offset_upper=0

offset_lower=$($YAML_PARSER "$TARGET_DEF_FILE" analog.offset.lower)
offset_upper=$($YAML_PARSER "$TARGET_DEF_FILE" analog.offset.upper)

{
printf "%s\n" "DEFINES += ADC_LOWER_OFFSET_PERCENTAGE=$offset_lower"
printf "%s\n" "DEFINES += ADC_UPPER_OFFSET_PERCENTAGE=$offset_upper"
} >> "$OUT_FILE_MAKEFILE_DEFINES"

analog_in_type=$($YAML_PARSER "$TARGET_DEF_FILE" analog.type)

declare -i nr_of_analog_inputs
Expand Down

0 comments on commit 8e3ac0f

Please sign in to comment.