Skip to content

Commit 0f4ec37

Browse files
authored
Remove warnings (#40)
* Support Dn for non-ESP32 boards * remove note-c before re-add * Squashed 'src/note-c/' content from commit 915db44 git-subtree-dir: src/note-c git-subtree-split: 915db44ccfa27173e4003fa100fed84970755401
1 parent 922fbb2 commit 0f4ec37

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-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.1
2+
version=1.3.2
33
author=Blues Wireless
44
maintainer=Blues Wireless <[email protected]>
55
sentence=An easy to use Notecard Library for Arduino.

src/Notecard.h

+30
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,36 @@
7878
#endif
7979
#define D13 13
8080

81+
#else
82+
83+
#ifndef D5
84+
#define D5 5
85+
#endif
86+
87+
#ifndef D6
88+
#define D6 6
89+
#endif
90+
91+
#ifndef D9
92+
#define D9 9
93+
#endif
94+
95+
#ifndef D10
96+
#define D10 10
97+
#endif
98+
99+
#ifndef D11
100+
#define D11 11
101+
#endif
102+
103+
#ifndef D12
104+
#define D12 12
105+
#endif
106+
107+
#ifndef D13
108+
#define D13 13
109+
#endif
110+
81111
#endif
82112

83113
/**************************************************************************/

src/note-c/n_helpers.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1641,7 +1641,7 @@ uint32_t NoteMemAvailable()
16411641
// Allocate progressively smaller and smaller chunks
16421642
objHeader *lastObj = NULL;
16431643
static long int maxsize = 35000;
1644-
for (long int i=maxsize; i>=sizeof(objHeader); i=i-sizeof(objHeader)) {
1644+
for (long int i=maxsize; i>=(long int)sizeof(objHeader); i=i-sizeof(objHeader)) {
16451645
for (long int j=0;; j++) {
16461646
objHeader *thisObj;
16471647
thisObj = (objHeader *) _Malloc(i);

0 commit comments

Comments
 (0)