# HG changeset patch # User Josef 'Jeff' Sipek # Date 1721044905 14400 # Mon Jul 15 08:01:45 2024 -0400 # Node ID 43d2a8cd5054c423dd77e350762ad8039ea45410 # Parent bd4d46f389648014a12a38f580fd875e5cf0bfcc arch: use correct polarity for the end-of-string check The condition in usart_tx_flash_str was backward and therefore it never printed anything when given a non-zero length string, and went beyond end-of-buffer when given an empty string. Signed-off-by: Josef 'Jeff' Sipek diff --git a/arch/atmega48p_usart.h b/arch/atmega48p_usart.h --- a/arch/atmega48p_usart.h +++ b/arch/atmega48p_usart.h @@ -44,7 +44,7 @@ static inline void usart_tx_flash_str(const __flash char *ptr) { - while (!*ptr) { + while (*ptr) { usart_tx_byte(*ptr); ptr++; }