File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ typedef struct {
24
24
} chip_state_t ;
25
25
26
26
27
- static void set_nand (chip_state_t * chip ) {
27
+ static void set_logic (chip_state_t * chip ) {
28
28
pin_write (chip -> pin_1Y , !( pin_read (chip -> pin_1A ) & pin_read (chip -> pin_1B ) ) );
29
29
pin_write (chip -> pin_2Y , !( pin_read (chip -> pin_2A ) & pin_read (chip -> pin_2B ) ) );
30
30
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) {
35
35
36
36
static void chip_pin_change (void * user_data , pin_t pin , uint32_t value ) {
37
37
chip_state_t * chip = (chip_state_t * )user_data ;
38
- set_nand (chip );
38
+ set_logic (chip );
39
39
}
40
40
41
41
@@ -92,6 +92,6 @@ void chip_init() {
92
92
pin_watch (chip -> pin_4A , & config );
93
93
pin_watch (chip -> pin_4B , & config );
94
94
95
- set_nand (chip );
95
+ set_logic (chip );
96
96
97
97
}
You can’t perform that action at this time.
0 commit comments