mirror of
https://github.com/cclassic/hcs12ss59t
synced 2024-11-25 03:25:05 +01:00
Ensure that arguments don't affect the command bits
This commit is contained in:
parent
698ef7385f
commit
a69247c08b
@ -64,7 +64,7 @@ void hcs12ss59t_send_byte(char c)
|
|||||||
void hcs12ss59t_send_cmd(char cmd, char arg)
|
void hcs12ss59t_send_cmd(char cmd, char arg)
|
||||||
{
|
{
|
||||||
HCS12SS59T_SELECT;
|
HCS12SS59T_SELECT;
|
||||||
hcs12ss59t_send_byte(cmd | arg);
|
hcs12ss59t_send_byte(cmd | (arg & 0x0f));
|
||||||
HCS12SS59T_DESELECT;
|
HCS12SS59T_DESELECT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user