1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-04-22 09:37:21 +00:00

Accept uint8_ts only.

This commit is contained in:
Thomas Harte 2025-03-07 23:36:47 -05:00
parent bff10c1714
commit 4e882e7d4d
2 changed files with 2 additions and 3 deletions

View File

@ -120,8 +120,7 @@ public:
void post([[maybe_unused]] const uint8_t value) {
}
template <typename IntT>
void write(const uint16_t port, const IntT value) {
void write(const uint16_t port, const uint8_t value) {
switch(port) {
default:
log_.error().append("Unimplemented AT keyboard write: %04x to %04x", value, port);

View File

@ -292,7 +292,7 @@ public:
if constexpr (is_xt(model)) {
ppi_.write(port, uint8_t(value));
} else {
keyboard_.write(port, value);
keyboard_.write(port, uint8_t(value));
}
break;