Skip to content

Commit

Permalink
Add support for PULLMODE=NONE
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinevg committed Oct 7, 2024
1 parent 63c6c71 commit e6705c8
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 e6705c8

Please sign in to comment.