Ensure that arguments don't affect the command bits

master
Markus Koch 2018-01-13 09:52:38 +01:00
parent 698ef7385f
commit a69247c08b
1 changed files with 1 additions and 1 deletions

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;
}