Skip to content

Commit f4b9903

Browse files
committed
GSM: fix build if mbed trace is disabled
1 parent 4183176 commit f4b9903

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/GSM/src/GSM.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@ class GSMClass : public MbedSocketClass {
108108
bool setTime(unsigned long const epoch, int const timezone = 0);
109109
void enableCmux();
110110
bool isCmuxEnable();
111+
#if MBED_CONF_MBED_TRACE_ENABLE
111112
void trace(Stream& stream);
112113
void setTraceLevel(int trace_level, bool timestamp = false);
114+
#endif
113115
int ping(const char* hostname, uint8_t ttl = 128);
114116
int ping(const String& hostname, uint8_t ttl = 128);
115117
int ping(IPAddress host, uint8_t ttl = 128);

0 commit comments

Comments
 (0)