Skip to content
Next Next commit
PTYSerial: do not trace write data
  * To trace AT output messages enable AT debug trace in mbed
  • Loading branch information
pennam committed Nov 21, 2023
commit 5e507f0422d30d98c1b4a446b91b5d6238c631f8
3 changes: 0 additions & 3 deletions libraries/GSM/src/PTYSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,17 @@ int PTYSerial::get_port() {
}
int PTYSerial::write(const void *buffer) {
const char *buf_ptr = static_cast<const char *>(buffer);
tr_info("%s", buffer);
return write(buf_ptr, sizeof(buffer));
}

int PTYSerial::write(const void *buffer, size_t length) {
const char *buf_ptr = static_cast<const char *>(buffer);
tr_info("%s", buffer);
int ret = _parent->populate_tx_buffer(buf_ptr, length, this->get_port());
return ret;
}

int PTYSerial::write(const void *buffer, size_t length, int id) {
const char *buf_ptr = static_cast<const char *>(buffer);
tr_info("%s", buffer);
int ret = _parent->populate_tx_buffer(buf_ptr, length, id);
return ret;
}
Expand Down