From b4d10e20834ca0aa4a32235672064bffbe41561e Mon Sep 17 00:00:00 2001 From: Zhaohe Date: Sat, 10 Dec 2022 21:10:17 +0800 Subject: [PATCH] append --- core/components/uart/uart.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/components/uart/uart.cpp b/core/components/uart/uart.cpp index b5f0b80..77c1050 100644 --- a/core/components/uart/uart.cpp +++ b/core/components/uart/uart.cpp @@ -207,6 +207,7 @@ int Uart::receive(char *data, int size_max) { logger->debug("{} receive: {}[{}]", this->device.name, StringUtil().bytesToString((const uint8_t *)data, ret)); } } + return ret; } int Uart::stop() { int rc = uartStop(&this->device);