aboutsummaryrefslogtreecommitdiff
path: root/applications/message_handler/test/message_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'applications/message_handler/test/message_client.cpp')
-rw-r--r--applications/message_handler/test/message_client.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/message_handler/test/message_client.cpp b/applications/message_handler/test/message_client.cpp
index 4209564..39d1392 100644
--- a/applications/message_handler/test/message_client.cpp
+++ b/applications/message_handler/test/message_client.cpp
@@ -34,7 +34,7 @@ MessageClient::MessageClient(EthosU::ethosu_core_queue &_inputMessageQueue,
bool MessageClient::sendInputMessage(const uint32_t type, const void *src, uint32_t length) {
if (!input.write(type, src, length)) {
- printf("ERROR: Msg: Failed to write ping request. No mailbox message sent\n");
+ printf("ERROR: Msg: Failed to write message request. No mailbox message sent\n");
return false;
}
@@ -44,7 +44,7 @@ bool MessageClient::sendInputMessage(const uint32_t type, const void *src, uint3
}
bool MessageClient::waitAndReadOutputMessage(const uint32_t expected_type, uint8_t *dst, uint32_t length) {
- constexpr TickType_t delay = pdMS_TO_TICKS(2);
+ constexpr TickType_t delay = pdMS_TO_TICKS(5);
constexpr TickType_t deadline = pdMS_TO_TICKS(/* 1 minute */ 60 * 1000 * 1000);
struct ethosu_core_msg msg;
@@ -68,7 +68,7 @@ bool MessageClient::waitAndReadOutputMessage(const uint32_t expected_type, uint8
}
if (msg.type != expected_type) {
- printf("ERROR: Wrong message type\n");
+ printf("ERROR: Wrong message type. Got %" PRIu32 " expected %" PRIu32 "\n", msg.type, expected_type);
return false;
}