Skip to content
Snippets Groups Projects
Commit 1d1862e0 authored by Thibaut VIARD's avatar Thibaut VIARD
Browse files

Fixing wrong pin test for DAC

parent 36176eff
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,7 @@ void analogWrite( uint32_t ulPin, uint32_t ulValue )
if ( (attr & PIN_ATTR_ANALOG) == PIN_ATTR_ANALOG )
{
if ( ulPin != 24 ) // Only 1 DAC on A0 (PA02)
if ( ulPin != PIN_A0 ) // Only 1 DAC on A0 (PA02)
{
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment