Skip to content

Commit

Permalink
Removed doxygen conditions surrounding ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
dherrada committed May 21, 2020
1 parent dd90793 commit d32efe3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
20 changes: 0 additions & 20 deletions Adafruit_FONA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,15 @@

#include "Adafruit_FONA.h"

/// @cond DISABLE
#if defined(ESP8266)
/// @endcond
// ESP8266 doesn't have the min and max functions natively available like
// AVR libc seems to provide. Include the STL algorithm library to get these.
// Unfortunately algorithm isn't available in AVR libc so this is ESP8266
// specific (and likely needed for ARM or other platforms, but they lack
// software serial and are currently incompatible with the FONA library).
#include <algorithm>
using namespace std;
/// @cond DISABLE
#endif
/// @endcond
/**
* @brief Construct a new Adafruit_FONA object
*
Expand Down Expand Up @@ -100,13 +96,9 @@ bool Adafruit_FONA::begin(Stream &port) {
}

if (timeout <= 0) {
/// @cond DISABLE
#ifdef ADAFRUIT_FONA_DEBUG
/// @endcond
DEBUG_PRINTLN(F("Timeout: No response to AT... last ditch attempt."));
/// @cond DISABLE
#endif
/// @endcond
sendCheckReply(F("AT"), ok_reply);
delay(100);
sendCheckReply(F("AT"), ok_reply);
Expand Down Expand Up @@ -169,15 +161,11 @@ bool Adafruit_FONA::begin(Stream &port) {
}
}

/// @cond DISABLE
#if defined(FONA_PREF_SMS_STORAGE)
/// @endcond
sendCheckReply(F("AT+CPMS=" FONA_PREF_SMS_STORAGE "," FONA_PREF_SMS_STORAGE
"," FONA_PREF_SMS_STORAGE),
ok_reply);
/// @cond DISABLE
#endif
/// @endcond

return true;
}
Expand Down Expand Up @@ -1908,16 +1896,12 @@ bool Adafruit_FONA::TCPsend(char *data, uint8_t len) {

DEBUG_PRINT(F("AT+CIPSEND="));
DEBUG_PRINTLN(len);
/// @cond DISABLE
#ifdef ADAFRUIT_FONA_DEBUG
/// @endcond
for (uint16_t i = 0; i < len; i++) {
DEBUG_PRINT(F(" 0x"));
DEBUG_PRINT(data[i], HEX);
}
/// @cond DISABLE
#endif
/// @endcond
DEBUG_PRINTLN();

mySerial->print(F("AT+CIPSEND="));
Expand Down Expand Up @@ -1972,19 +1956,15 @@ uint16_t Adafruit_FONA::TCPread(uint8_t *buff, uint8_t len) {

readRaw(avail);

/// @cond DISABLE
#ifdef ADAFRUIT_FONA_DEBUG
/// @endcond
DEBUG_PRINT(avail);
DEBUG_PRINTLN(F(" bytes read"));
for (uint8_t i = 0; i < avail; i++) {
DEBUG_PRINT(F(" 0x"));
DEBUG_PRINT(replybuffer[i], HEX);
}
DEBUG_PRINTLN();
/// @cond DISABLE
#endif
/// @endcond

memcpy(buff, replybuffer, avail);

Expand Down
4 changes: 0 additions & 4 deletions Adafruit_FONA.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/*
* @file Adafruit_FONA.h
*/
/// @cond DISABLE
#ifndef ADAFRUIT_FONA_H
/// @endcond
#define ADAFRUIT_FONA_H

#include "includes/FONAConfig.h"
Expand Down Expand Up @@ -281,6 +279,4 @@ class Adafruit_FONA_3G : public Adafruit_FONA {
float *f, char divider = ',', uint8_t index = 0);
};

/// @cond DISABLE
#endif
/// @endcond

0 comments on commit d32efe3

Please sign in to comment.