Skip to content

Commit dad31f2

Browse files
authored
Update main.c
1 parent e862038 commit dad31f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ typedef struct {
2424
} chip_state_t;
2525

2626

27-
static void set_nand(chip_state_t *chip) {
27+
static void set_logic(chip_state_t *chip) {
2828
pin_write(chip->pin_1Y, !( pin_read(chip->pin_1A) & pin_read(chip->pin_1B) ) );
2929
pin_write(chip->pin_2Y, !( pin_read(chip->pin_2A) & pin_read(chip->pin_2B) ) );
3030
pin_write(chip->pin_3Y, !( pin_read(chip->pin_3A) & pin_read(chip->pin_3B) ) );
@@ -35,7 +35,7 @@ static void set_nand(chip_state_t *chip) {
3535

3636
static void chip_pin_change(void *user_data, pin_t pin, uint32_t value) {
3737
chip_state_t *chip = (chip_state_t*)user_data;
38-
set_nand(chip);
38+
set_logic(chip);
3939
}
4040

4141

@@ -92,6 +92,6 @@ void chip_init() {
9292
pin_watch(chip->pin_4A, &config);
9393
pin_watch(chip->pin_4B, &config);
9494

95-
set_nand(chip);
95+
set_logic(chip);
9696

9797
}

0 commit comments

Comments
 (0)