Skip to content

Commit bffc0cd

Browse files
committedMar 5, 2025
Fix missing c_str in trace mode
1 parent 330695e commit bffc0cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/WARDuino/CallbackHandler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Callback::Callback(Module *m, std::string id, uint32_t tidx) {
194194

195195
void Callback::resolve_event(const Event &e) {
196196
dbg_trace("Callback(%s, %i): resolving Event(%s, \"%s\")\n", topic.c_str(),
197-
table_index, e.topic.c_str(), e.payload);
197+
table_index, e.topic.c_str(), e.payload.c_str());
198198

199199
// Copy topic and payload to linear memory
200200
uint32_t start = 10000; // TODO use reserved area in linear memory

0 commit comments

Comments
 (0)
Please sign in to comment.