1
0
mirror of https://github.com/cclassic/hcs12ss59t synced 2024-12-22 22:45:05 +01:00

Ensure that arguments don't affect the command bits

This commit is contained in:
Markus Koch 2018-01-13 09:52:38 +01:00
parent 698ef7385f
commit a69247c08b

View File

@ -64,7 +64,7 @@ void hcs12ss59t_send_byte(char c)
void hcs12ss59t_send_cmd(char cmd, char arg)
{
HCS12SS59T_SELECT;
hcs12ss59t_send_byte(cmd | arg);
hcs12ss59t_send_byte(cmd | (arg & 0x0f));
HCS12SS59T_DESELECT;
}