Skip to content

Commit f6e318e

Browse files
committed
Ensure default value for analogWriteResolution()
1 parent bd01a86 commit f6e318e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/nRF5/wiring_analog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
extern "C"
4747
{
4848

49-
static uint8_t _lastAnalogWriteResolution;
49+
static uint8_t _lastAnalogWriteResolution = 8; // default is 256 levels
5050
static uintptr_t _analogToken = 0x676f6c41; // 'A' 'l' 'o' 'g'
5151

5252
/**

0 commit comments

Comments
 (0)