You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sending a buffer with 112 x, except '\n' at positions 55 and 111: yet I am not seeing them in the last few characters
Here's my code in case it's something stupid:
staticautoupdate_lcd(std::string_view txt)
{
uint8_t buf[112] = {};
for (int i = 0; i < std::min(int(std::ssize(txt)), 112); i++)
buf[i] = charmap_lcd(txt[i]);
buf[55] = '\n';
buf[111] = '\n';
// buf is then sent according to protocol
...
}
The text was updated successfully, but these errors were encountered:
I'm sending a buffer with 112 x, except '\n' at positions 55 and 111: yet I am not seeing them in the last few characters
Here's my code in case it's something stupid:
The text was updated successfully, but these errors were encountered: