Skip to content

Commit 1ba69f3

Browse files
author
Scott Powell
committed
* self telemetry response simpler now
1 parent 870b5d2 commit 1ba69f3

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

examples/companion_radio/MyMesh.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,13 +1374,6 @@ void MyMesh::handleCmdFrame(size_t len) {
13741374
writeErrFrame(ERR_CODE_NOT_FOUND); // contact not found
13751375
}
13761376
} else if (cmd_frame[0] == CMD_SEND_TELEMETRY_REQ && len == 4) { // 'self' telemetry request
1377-
out_frame[0] = RESP_CODE_SENT;
1378-
out_frame[1] = 0;
1379-
uint32_t tag = 0, est_timeout = 50;
1380-
memcpy(&out_frame[2], &tag, 4);
1381-
memcpy(&out_frame[6], &est_timeout, 4);
1382-
_serial->writeFrame(out_frame, 10);
1383-
13841377
telemetry.reset();
13851378
telemetry.addVoltage(TELEM_CHANNEL_SELF, (float)board.getBattMilliVolts() / 1000.0f);
13861379
// query other sensors -- target specific

0 commit comments

Comments
 (0)