Browse Source

removed unnecessary compiler directives

tags/v1.4.0^2
Bertrand Lemasle 6 years ago
parent
commit
b2cfd8ccdd
3 changed files with 2 additions and 6 deletions
  1. +0
    -1
      src/Network.cpp
  2. +0
    -1
      src/NetworkPositionsBackup.cpp
  3. +2
    -4
      src/Time2.cpp

+ 0
- 1
src/Network.cpp View File

@@ -27,7 +27,6 @@ namespace network {
_poweredOnTime = 0;
}
__attribute__((__optimize__("O2")))
SIM808_NETWORK_REGISTRATION_STATE waitForRegistered(uint32_t timeout, bool relativeToPowerOnTime = true) {
#define CURRENT_LOGGER_FUNCTION "waitForRegistered"
NOTICE;


+ 0
- 1
src/NetworkPositionsBackup.cpp View File

@@ -56,7 +56,6 @@ namespace positions {
return responseCode == POSITIONS_CONFIG_NET_DEFAULT_EXPECTED_RESPONSE;
}
//__attribute__((__optimize__("O2")))
void NetworkPositionsBackup::appendPositions() {
#define CURRENT_LOGGER_FUNCTION "appendPositions"


+ 2
- 4
src/Time2.cpp View File

@@ -16,8 +16,7 @@
namespace utils {
namespace time {
__attribute__((__optimize__("O2")))
timestamp_t makeTimestamp(const tmElements_t &time) {
timestamp_t makeTimestamp(const tmElements_t &time) {
timestamp_t timestamp;
timestamp += (time.day - 1) * SECS_PER_DAY;
@@ -28,8 +27,7 @@ namespace utils {
return timestamp;
}
__attribute__((__optimize__("O2")))
void breakTime(timestamp_t timestamp, tmElements_t &time) {
void breakTime(timestamp_t timestamp, tmElements_t &time) {
time.year = 0;
time.month = 0;


||||||
x
 
000:0
Loading…
Cancel
Save