Skip to content

Commit

Permalink
headers for memset
Browse files Browse the repository at this point in the history
  • Loading branch information
toxieainc committed Oct 30, 2024
1 parent d066f8b commit 1560c54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/wpc/uart_16c450.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>

#include "uart_16c450.h"
#include "uart_host.h"
Expand Down
3 changes: 2 additions & 1 deletion src/wpc/uart_8251.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>

#include "uart_8251.h"
#include "uart_host.h"
Expand Down Expand Up @@ -94,7 +95,7 @@ data8_t uart_8251_read(int reg)
locals.status |= STATUS_RX_READY;
}
}
return status;
return locals.status;

case REG_DATA:
// clear the RX_READY bit and return the buffered byte
Expand Down

0 comments on commit 1560c54

Please sign in to comment.