mirror of
https://github.com/pyrou/X10RF-Arduino.git
synced 2026-07-27 19:56:18 +00:00
Make house_code case insensitive
This commit is contained in:
@@ -156,7 +156,7 @@ void x10rf::RFXsensor(uint8_t rfxs_address,uint8_t rfxs_type, char rfxs_packet_t
|
||||
void x10rf::x10Switch(char house_code, uint8_t unit_code, uint8_t command){
|
||||
uint8_t x10buff[3]; // Set message buffer 4 bytes
|
||||
uint8_t bTmp = 0; // Tmp byte
|
||||
switch(house_code) {
|
||||
switch(tolower(house_code)) {
|
||||
case 'a': x10buff[0] = B0110; break;
|
||||
case 'b': x10buff[0] = B0111; break;
|
||||
case 'c': x10buff[0] = B0100; break;
|
||||
|
||||
Reference in New Issue
Block a user