From aebdca3f639f6978f423e890da9d5169e718cae0 Mon Sep 17 00:00:00 2001 From: Henry Gabryjelski Date: Wed, 13 May 2020 22:41:16 -0700 Subject: [PATCH] Ensure default value for `analogWriteResolution()` --- cores/nRF5/wiring_analog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/nRF5/wiring_analog.cpp b/cores/nRF5/wiring_analog.cpp index 3d2aadb7..b2e88115 100644 --- a/cores/nRF5/wiring_analog.cpp +++ b/cores/nRF5/wiring_analog.cpp @@ -46,7 +46,7 @@ extern "C" { -static uint8_t _lastAnalogWriteResolution; +static uint8_t _lastAnalogWriteResolution = 8; // default is 256 levels static uintptr_t _analogToken = 0x676f6c41; // 'A' 'l' 'o' 'g' /**