Skip to content

Commit 6966c8c

Browse files
committed
Final
1 parent 88634a9 commit 6966c8c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

firmware/chipignite/polysat/src/polysat.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void configure_io() {
7575
reg_mprj_io_28 = GPIO_MODE_MGMT_STD_INPUT_NOPULL;
7676
reg_mprj_io_29 = GPIO_MODE_MGMT_STD_INPUT_NOPULL;
7777
reg_mprj_io_30 = GPIO_MODE_MGMT_STD_INPUT_PULLUP; // High
78-
reg_mprj_io_31 = GPIO_MODE_MGMT_STD_INPUT_PULLDOWN; // Low
78+
reg_mprj_io_31 = GPIO_MODE_MGMT_STD_INPUT_PULLUP; // Low
7979
reg_mprj_io_32 = GPIO_MODE_MGMT_STD_INPUT_PULLUP; // High
8080
reg_mprj_io_33 = GPIO_MODE_MGMT_STD_OUTPUT; // Controlled by the code
8181
reg_mprj_io_34 = GPIO_MODE_MGMT_STD_INPUT_NOPULL;
@@ -156,11 +156,9 @@ void main() {
156156
// Main loop - echo received characters and blink LED and
157157
while (true) {
158158
if (!pulse) {
159-
led_off();
160159
// Set GPIO 33 low (bit 1)
161160
gpio_clear(33);
162161
} else {
163-
led_on();
164162
// Set GPIO 33 high (bit 1)
165163
gpio_set(33, true);
166164
}

0 commit comments

Comments
 (0)