Browse Source

**My** pet library thought those utils were public, Oops!

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
v_master
Sara Damiano 5 years ago
parent
commit
379d6e2a8a
1 changed files with 8 additions and 7 deletions
  1. +8
    -7
      src/TinyGsmModem.tpp

+ 8
- 7
src/TinyGsmModem.tpp View File

@ -242,7 +242,7 @@ class TinyGsmModem {
/*
Utilities
*/
protected:
public:
// Utility templates for writing/skipping characters on a stream
template <typename T>
inline void streamWrite(T last) {
@ -255,6 +255,13 @@ class TinyGsmModem {
thisModem().streamWrite(tail...);
}
inline void streamClear() {
while (thisModem().stream.available()) {
thisModem().waitResponse(50, NULL, NULL);
}
}
protected:
inline int16_t streamGetIntLength(int8_t numChars) {
char buf[6];
size_t bytesRead = thisModem().stream.readBytes(buf, numChars);
@ -318,12 +325,6 @@ class TinyGsmModem {
}
return false;
}
inline void streamClear() {
while (thisModem().stream.available()) {
thisModem().waitResponse(50, NULL, NULL);
}
}
};
#endif // SRC_TINYGSMMODEM_H_

Loading…
Cancel
Save