Skip to content

Commit 2ce10ac

Browse files
authored
Merge pull request #30 from harp-tech/fix-dis-read
Fix read digital inputs function on firmware
2 parents ae721f4 + af52fb2 commit 2ce10ac

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Firmware/Behavior/app.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void hwbp_app_initialize(void)
3636
uint8_t hwH = 2;
3737
uint8_t hwL = 0;
3838
uint8_t fwH = 3;
39-
uint8_t fwL = 2;
39+
uint8_t fwL = 3;
4040
uint8_t ass = 0;
4141

4242
/* Start core */

Firmware/Behavior/app_funcs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ void app_read_REG_PORT_DIS(void)
217217
app_regs.REG_PORT_DIS = (read_POKE0_IR) ? B_DI0 : 0;
218218
app_regs.REG_PORT_DIS |= (read_POKE1_IR) ? B_DI1 : 0;
219219
app_regs.REG_PORT_DIS |= (read_POKE2_IR) ? B_DI2 : 0;
220+
app_regs.REG_PORT_DIS |= (read_DI3) ? B_DI3 : 0;
220221
}
221222
bool app_write_REG_PORT_DIS(void *a) { return false; }
222223

0 commit comments

Comments
 (0)