mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
formatting
This commit is contained in:
@@ -155,7 +155,7 @@ bool ModbusClientTCPasync::addToQueue(int32_t token, ModbusMessage request, bool
|
|||||||
HEXDUMP_V("Enqueue", request.data(), request.size());
|
HEXDUMP_V("Enqueue", request.data(), request.size());
|
||||||
RequestEntry * re = new RequestEntry(token, request, syncReq);
|
RequestEntry * re = new RequestEntry(token, request, syncReq);
|
||||||
if (!re)
|
if (!re)
|
||||||
return false; // TODO: proper error returning in case allocation fails
|
return false; // TODO proper error returning in case allocation fails
|
||||||
// inject proper transactionID
|
// inject proper transactionID
|
||||||
re->head.transactionID = messageCount++;
|
re->head.transactionID = messageCount++;
|
||||||
re->head.len = request.size();
|
re->head.len = request.size();
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
// Compile with -DEMSESP_UNITY_CREATE to generate the test functions
|
// Compile with -DEMSESP_UNITY_CREATE to generate the test functions
|
||||||
// and copy the output and paste below.
|
// and copy the output and paste below.
|
||||||
//
|
//
|
||||||
// TODO: convert output to JSON and compare, showing differences
|
// TODO convert output to JSON and compare, showing differences
|
||||||
//
|
//
|
||||||
// You can also manually compare the differences using https://www.diffchecker.com/text-compare/
|
// You can also manually compare the differences using https://www.diffchecker.com/text-compare/
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user