Skip to content

Commit 7bb6f43

Browse files
committed
Moving defines up to top of file and adding bracelets around constants (good programming practice)
1 parent f221527 commit 7bb6f43

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/NB_SMS.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222

2323
#include <Stream.h>
2424

25+
#define NB_SMS_CLEAR_READ (1)
26+
#define NB_SMS_CLEAR_READ_SENT (2)
27+
#define NB_SMS_CLEAR_READ_SENT_UNSENT (3)
28+
#define NB_SMS_CLEAR_ALL (4)
29+
2530
class NB_SMS : public Stream {
2631

2732
public:
@@ -85,11 +90,7 @@ class NB_SMS : public Stream {
8590
void flush();
8691

8792
/** Delete all read and sent SMS from Modem memory and process answer */
88-
#define NB_SMS_CLEAR_READ 1
89-
#define NB_SMS_CLEAR_READ_SENT 2
90-
#define NB_SMS_CLEAR_READ_SENT_UNSENT 3
91-
#define NB_SMS_CLEAR_ALL 4
92-
void clear(int flag=NB_SMS_CLEAR_READ_SENT);
93+
void clear(int flag = NB_SMS_CLEAR_READ_SENT);
9394

9495
private:
9596
bool _synch;

0 commit comments

Comments
 (0)