Skip to content

Commit af0f23b

Browse files
committed
Clean up warnings in compliance sketch, more AVR-isms
1 parent 467d137 commit af0f23b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/lmic/lmic_compliance.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ static lmic_event_cb_t lmicEventCb;
5454
static lmic_txmessage_cb_t sendUplinkCompleteCb;
5555
static osjobcbfn_t timerExpiredCb;
5656

57-
/* this is declared global so the optimizer can chuck it without warnings */
57+
/* these are declared global so the optimizer can chuck them without warnings */
5858
const char *LMICcompliance_txSuccessToString(int fSuccess);
59+
const char * LMICcompliance_fsmstate_getName(lmic_compliance_fsmstate_t state);
5960

6061
/****************************************************************************\
6162
|
@@ -386,8 +387,6 @@ Name: evEchoCommand()
386387
387388
*/
388389

389-
static lmic_txmessage_cb_t evEchoCommandCb;
390-
391390
static void evEchoCommand(
392391
const uint8_t *pMessage,
393392
size_t nMessage
@@ -439,7 +438,7 @@ Name: fsmEval()
439438
440439
*/
441440

442-
static const char * lmic_compliance_fsmstate_Getname(lmic_compliance_fsmstate_t state) {
441+
const char * LMICcompliance_fsmstate_getName(lmic_compliance_fsmstate_t state) {
443442
const char * const names[] = { LMIC_COMPLIANCE_FSMSTATE__NAMES };
444443

445444
if ((unsigned) state >= sizeof(names)/sizeof(names[0]))
@@ -497,8 +496,8 @@ static void fsmEval(void) {
497496
// state change!
498497
LMIC_COMPLIANCE_PRINTF("%s: change state %s(%u) => %s(%u)\n",
499498
__func__,
500-
lmic_compliance_fsmstate_Getname(oldState), (unsigned) oldState,
501-
lmic_compliance_fsmstate_Getname(newState), (unsigned) newState
499+
LMICcompliance_fsmstate_getName(oldState), (unsigned) oldState,
500+
LMICcompliance_fsmstate_getName(newState), (unsigned) newState
502501
);
503502
fNewState = true;
504503
LMIC_Compliance.fsmState = newState;

0 commit comments

Comments
 (0)