Name print

This commit is contained in:
Sara Damiano
2019-05-15 16:47:07 -04:00
parent ea8d43df88
commit 090e0163c5

View File

@@ -279,6 +279,7 @@ public:
String name = getModemName(); String name = getModemName();
DBG(GF("### Modem:"), name); DBG(GF("### Modem:"), name);
if (name.startsWith("u-blox SARA-R4") or name.startsWith("u-blox SARA-N4")) { if (name.startsWith("u-blox SARA-R4") or name.startsWith("u-blox SARA-N4")) {
DBG(GF("### This is an LTE-M modem!"), name);
isCatM = true; isCatM = true;
} }
else if (name.startsWith("u-blox SARA-N2")) { else if (name.startsWith("u-blox SARA-N2")) {
@@ -833,7 +834,7 @@ protected:
} }
streamSkipUntil(','); // Skip mux streamSkipUntil(','); // Skip mux
int sent = stream.readStringUntil('\n').toInt(); int sent = stream.readStringUntil('\n').toInt();
waitResponse(); waitResponse(); // sends back OK after the confirmation of number sent
maintain(); // look for a very quick response from the remote maintain(); // look for a very quick response from the remote
return sent; return sent;
} }