mirror of
https://github.com/osiweb/unified_retro_keyboard.git
synced 2024-11-22 04:33:19 +00:00
BUGFIX: 328P OUT2 output was changing OUT1
This appears to have been a cut-paste typo in the asdf_arch_out2_set() function in asdf_arch_atmega328p.c. The port was set to OUT2, but the bit was OUT1.
This commit is contained in:
parent
e6af897df2
commit
f8a314d0ca
@ -393,10 +393,10 @@ void asdf_arch_out1_open_lo_set(uint8_t value)
|
||||
void asdf_arch_out2_set(uint8_t value)
|
||||
{
|
||||
if (value) {
|
||||
clear_bit(&ASDF_OUT2_PORT, ASDF_OUT1_BIT);
|
||||
clear_bit(&ASDF_OUT2_PORT, ASDF_OUT2_BIT);
|
||||
}
|
||||
else {
|
||||
set_bit(&ASDF_OUT2_PORT, ASDF_OUT1_BIT);
|
||||
set_bit(&ASDF_OUT2_PORT, ASDF_OUT2_BIT);
|
||||
}
|
||||
set_bit(&ASDF_OUT2_DDR, ASDF_OUT2_BIT);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user