Moved stream write and stream skip into common

This commit is contained in:
Sara Damiano
2018-09-13 17:08:09 -04:00
parent 06b54e8463
commit 0004bebf16
11 changed files with 27 additions and 196 deletions

View File

@@ -729,17 +729,6 @@ public:
while (stream.available()) { stream.read(); }
}
template<typename T>
void streamWrite(T last) {
stream.print(last);
}
template<typename T, typename... Args>
void streamWrite(T head, Args... tail) {
stream.print(head);
streamWrite(tail...);
}
template<typename... Args>
void sendAT(Args... cmd) {
streamWrite("AT", cmd..., GSM_NL);