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 <jeffpc@josefsipek.net>
1 files changed, 1 insertions(+), 1 deletions(-)

M arch/atmega48p_usart.h
M arch/atmega48p_usart.h +1 -1
@@ 44,7 44,7 @@ static inline void usart_tx_be16(uint16_
 
 static inline void usart_tx_flash_str(const __flash char *ptr)
 {
-	while (!*ptr) {
+	while (*ptr) {
 		usart_tx_byte(*ptr);
 		ptr++;
 	}