Skip to content

Commit cc9b413

Browse files
authored
group Class-B code
Group Class-B code with the #define CLASS_B
1 parent 63e34ba commit cc9b413

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lmic/lmic.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,13 @@ struct lmic_t {
204204
u1_t dn2Dr;
205205
u4_t dn2Freq;
206206
u1_t dn2Ans; // 0=no answer pend, 0x80+ACKs
207-
207+
#if defined CLASS_B
208208
// Class B state
209209
u1_t missedBcns; // unable to track last N beacons
210210
u1_t bcninfoTries; // how often to try (scan mode only)
211211
u1_t pingSetAns; // answer set cmd and ACK bits
212212
rxsched_t ping; // pingable setup
213-
213+
#endif
214214
// Public part of MAC state
215215
u1_t txCnt;
216216
u1_t txrxFlags; // transaction flags (TX-RX combo)
@@ -243,6 +243,7 @@ bit_t LMIC_startJoining (void);
243243
void LMIC_shutdown (void);
244244
void LMIC_init (void);
245245
void LMIC_reset (void);
246+
void LMIC_restart (void); //restart after a LMIC_shutdown without reset
246247
void LMIC_clrTxData (void);
247248
void LMIC_setTxData (void);
248249
int LMIC_setTxData2 (u1_t port, xref2u1_t data, u1_t dlen, u1_t confirmed);

0 commit comments

Comments
 (0)