usart revised
This commit is contained in:
parent
3f0fe49644
commit
ff84de538a
7 changed files with 127 additions and 184 deletions
|
@ -143,7 +143,6 @@ std::vector<std::string> B15F::getBoardInfo(void)
|
|||
|
||||
uint8_t n;
|
||||
usart.receive(&n, 0, sizeof(n));
|
||||
std::cout << "len: " << (int) n << std::endl << std::flush;
|
||||
while (n--)
|
||||
{
|
||||
uint8_t len;
|
||||
|
@ -153,8 +152,6 @@ std::vector<std::string> B15F::getBoardInfo(void)
|
|||
str[len] = '\0';
|
||||
usart.receive(reinterpret_cast<uint8_t *>(&str[0]), 0, len);
|
||||
|
||||
std::cout << &str[0] << std::endl;
|
||||
|
||||
info.push_back(std::string(str));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue