Skip to content

Commit

Permalink
Clear LUTCTRLA before itializing it
Browse files Browse the repository at this point in the history
Closes MCUdude#98
  • Loading branch information
MCUdude committed Dec 16, 2020
1 parent b6d44b7 commit 0acb67b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions megaavr/libraries/Logic/src/Logic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ void Logic::init()
}

// Set logic output state and output filter
block.LUTCTRLA = 0x00;
block.LUTCTRLA = (output ? CCL_OUTEN_bm : 0)
| (edgedetect ? CCL_EDGEDET_EN_gc : 0 )
| (filter << CCL_FILTSEL_gp)
Expand Down

0 comments on commit 0acb67b

Please sign in to comment.