truly take advantage of __code pointer

This commit is contained in:
Mirko Scholz 2020-09-05 09:59:08 +02:00
parent c18c0dabfd
commit 1075e6d103

View File

@ -227,10 +227,10 @@ void LCD_OutString(__xdata const char *string, uint8_t max_chars) {
} }
} }
void LCD_OutString_Initial(__code const char *string) { void LCD_OutString_Initial(__code const char *s) {
const char *s; while (*s) {
for (s = string; *s; s++) {
TERMIO_PutChar(*s); TERMIO_PutChar(*s);
s++;
} }
} }