Skip to content

Commit

Permalink
Fix code scanning alert (#302)
Browse files Browse the repository at this point in the history
* Fix code scanning alert

* Update

Signed-off-by: Pablo Garrido <pablogs9@gmail.com>

Co-authored-by: Pablo Garrido <pablogs9@gmail.com>
  • Loading branch information
Acuadros95 and pablogs9 authored Dec 15, 2021
1 parent fe7d1fe commit a794c4f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ size_t uxr_write_framed_msg(

/* Write payload. */
uint8_t octet = 0;
uint16_t written_len = 0;
size_t written_len = 0;
uint16_t crc = 0;
bool cond = true;
while (written_len < len && cond)
while ((written_len < len) && cond)
{
octet = *(buf + written_len);
if (uxr_add_next_octet(framing_io, octet))
Expand Down

0 comments on commit a794c4f

Please sign in to comment.