Skip to content

Commit

Permalink
Merge pull request #771 from antoinevg/antoinevg/fix-pullmode
Browse files Browse the repository at this point in the history
Add support for PULLMODE=NONE to lpf generation
  • Loading branch information
Obijuan authored Oct 7, 2024
2 parents 63c6c71 + e6705c8 commit d46fc82
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/scripts/services/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -956,9 +956,7 @@ angular.module('icestudio')

//-- Get the pullmode property of the physical pin (its id is pin.value)
let pullmode = common.selectedBoard.pinout.find(x => x.value === value).pullmode;
pullmode = (typeof pullmode === 'undefined') ? 'NONE' : pullmode;

if (pullmode === 'UP' || pullmode === 'DOWN') {
if (pullmode === 'UP' || pullmode === 'DOWN' || pullmode === 'NONE') {
code += 'PULLMODE=' + pullmode;
}
code += ' ;\n\n';
Expand All @@ -978,9 +976,7 @@ angular.module('icestudio')

//-- Get the pullmode property of the physical pin (its id is pin.value)
let pullmode = common.selectedBoard.pinout.find(x => x.value === value).pullmode;
pullmode = (typeof pullmode === 'undefined') ? 'NONE' : pullmode;

if (pullmode === 'UP' || pullmode === 'DOWN') {
if (pullmode === 'UP' || pullmode === 'DOWN' || pullmode === 'NONE') {
code += 'PULLMODE=' + pullmode;
}
code += ' ;\n\n';
Expand Down

0 comments on commit d46fc82

Please sign in to comment.