Skip to content

Commit 549aeac

Browse files
authored
v1.3.9 (#69)
* remove note-c before re-add * Squashed 'src/note-c/' content from commit 27fdad1 git-subtree-dir: src/note-c git-subtree-split: 27fdad1b2ec08637c8caacfa0d747bb2faf6e180 * rls: v1.3.9 version 1.3.8 missed because of library properties file - resolves user-agent bug - adds `B0` and `CS` (shared pin) defines for Swan
1 parent 491be3d commit 549aeac

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Blues Wireless Notecard
2-
version=1.3.7
2+
version=1.3.9
33
author=Blues Wireless
44
maintainer=Blues Wireless <[email protected]>
55
sentence=An easy to use Notecard Library for Arduino.

src/Notecard.h

+12
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,18 @@
9494
#endif
9595
#define D13 13
9696

97+
#elif defined(ARDUINO_SWAN_R5)
98+
99+
#ifdef CS
100+
#undef CS
101+
#endif
102+
#define CS PD0
103+
104+
#ifdef B0
105+
#undef B0
106+
#endif
107+
#define B0 CS
108+
97109
#else
98110

99111
#ifndef D5

src/note-c/n_cjson_helpers.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ bool JGetBinaryFromObject(J *rsp, const char *fieldName, uint8_t **retBinaryData
355355
uint32_t actualLen = JB64Decode(p, payload);
356356

357357
// Return the binary to the caller
358-
*retBinaryData = p;
358+
*retBinaryData = (uint8_t *)p;
359359
*retBinaryDataLen = actualLen;
360360
return true;
361361

0 commit comments

Comments
 (0)