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:
Dave 2021-11-08 22:36:09 -06:00
parent e6af897df2
commit f8a314d0ca
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}