Skip to content

Commit

Permalink
(Too) short string
Browse files Browse the repository at this point in the history
  • Loading branch information
couin3 committed Apr 29, 2020
1 parent b9aeee6 commit ed11b21
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion RFLink/Plugins/Plugin_002.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ boolean Plugin_002(byte function, char *string)
// Output
// ----------------------------------
data[2] = (data[2] & B1011); // get sensor type from bitstream
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02X%02X", data[3], data[4]);

if (data[2] == B0000) // Temperature
Expand Down
2 changes: 1 addition & 1 deletion RFLink/Plugins/Plugin_004.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ boolean Plugin_004(byte function, char *string)
display_Header();
display_Name(PSTR("NewKaku"));
display_IDn(((bitstream >> 6) & 0xFFFFFFFF), 8); //"%S%08lx"
char c_SWITCH[4];
char c_SWITCH[5];
sprintf(c_SWITCH, "%1x", ((byte)(bitstream & 0x0f) + 1)); // No leading 0
display_SWITCHc(c_SWITCH);

Expand Down
2 changes: 1 addition & 1 deletion RFLink/Plugins/Plugin_006.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ boolean Plugin_006(byte function, char *string)

display_IDn(address, 4); //"%04x"

char c_SWITCH[4];
char c_SWITCH[5];
sprintf(c_SWITCH, "%c%d", channel, subchan);
display_SWITCHc(c_SWITCH);
display_CMD((status >> 1) & B01, !(status & B01)); // #ALL #ON
Expand Down
2 changes: 1 addition & 1 deletion RFLink/Plugins/Plugin_008.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ boolean Plugin_008(byte function, char *string)
display_Name(PSTR("Kambrook"));
display_IDn((address & 0xFFFFFF), 6); //"%S%06lx"

char c_SWITCH[4];
char c_SWITCH[5];
sprintf(c_SWITCH, "%c%d", channel, subchan);
display_SWITCHc(c_SWITCH);

Expand Down
2 changes: 1 addition & 1 deletion RFLink/Plugins/Plugin_011.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ boolean Plugin_011(byte function, char *string)
display_Header();
display_Name(PSTR("HomeConfort"));
display_IDn((bitstream1 & 0xFFFFFF), 6); //"%S%06lx"
char c_SWITCH[4];
char c_SWITCH[5];
sprintf(c_SWITCH, "%c%d", channel, subchan);
display_SWITCHc(c_SWITCH);
display_CMD((group & B01), (command & B01)); // #ALL , #ON
Expand Down
2 changes: 1 addition & 1 deletion RFLink/Plugins/Plugin_012.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ boolean Plugin_012(byte function, char *string)
{
display_IDn(((unitcode << 8) | housecode), 8); // "%02x%02x"

char c_SWITCH[4];
char c_SWITCH[5];
sprintf(c_SWITCH, "%02x%02x", unitcode, housecode);
display_SWITCHc(c_SWITCH); // "%02x%02x"
}
Expand Down
2 changes: 1 addition & 1 deletion RFLink/Plugins/Plugin_030.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ boolean Plugin_030(byte function, char *string)
data[3] = (data[3]) & B0111; // prepare nibble to contain only the needed bits
//==================================================================================
rc = (data[1] << 4) | data[0];
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%04X", (rc & 0x03) << 2 | (rc & 0xFC));

if ((data[2]) != B0110)
Expand Down
2 changes: 1 addition & 1 deletion RFLink/Plugins/Plugin_032.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ boolean Plugin_032(byte function, char *string)
//==================================================================================
display_Header();
display_Name(PSTR("Alecto V4"));
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02x%02x", rc, rc2);
display_IDc(c_ID);
display_TEMP(temperature);
Expand Down
10 changes: 5 additions & 5 deletions RFLink/Plugins/Plugin_034.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ boolean Plugin_034(byte function, char *string)
//==================================================================================
display_Header();
display_Name(PSTR("Cresta"));
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02X%02X", data[1], channel);
display_IDc(c_ID);
display_WINDIR(winddirection);
Expand Down Expand Up @@ -243,7 +243,7 @@ boolean Plugin_034(byte function, char *string)
//==================================================================================
display_Header();
display_Name(PSTR("Cresta"));
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02X%02X", data[1], channel);
display_IDc(c_ID);
display_TEMP(sensor_data);
Expand All @@ -264,7 +264,7 @@ boolean Plugin_034(byte function, char *string)
//==================================================================================
display_Header();
display_Name(PSTR("Cresta"));
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02X%02X", data[1], channel);
display_IDc(c_ID);
display_RAIN(sensor_data);
Expand All @@ -287,7 +287,7 @@ boolean Plugin_034(byte function, char *string)
//==================================================================================
display_Header();
display_Name(PSTR("Cresta"));
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02X%02X", data[1], channel);
display_IDc(c_ID);
display_TEMP(sensor_data);
Expand All @@ -303,7 +303,7 @@ boolean Plugin_034(byte function, char *string)
//==================================================================================
display_Header();
display_Name(PSTR("Cresta;DEBUG"));
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02X%02X", data[1], channel);
display_IDc(c_ID);
display_Footer();
Expand Down
2 changes: 1 addition & 1 deletion RFLink/Plugins/Plugin_040.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ boolean Plugin_040(byte function, char *string)
//==================================================================================
display_Header();
display_Name(PSTR("Mebus"));
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02x%02x", rc, channel);
display_IDc(c_ID);
display_TEMP(temperature);
Expand Down
2 changes: 1 addition & 1 deletion RFLink/Plugins/Plugin_041.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ boolean Plugin_041(byte function, char *string)
//==================================================================================
display_Header();
display_Name(PSTR("LaCrosseV3"));
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02X%02X", data[0], data[1]);
display_IDc(c_ID);

Expand Down
8 changes: 4 additions & 4 deletions RFLink/Plugins/Plugin_042.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ boolean Plugin_042(byte function, char *string)
//==================================================================================
display_Header();
display_Name(PSTR("UPM/Esic"));
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02X%02X", rc, devicecode);
display_IDc(c_ID);
display_WINSP(winds);
Expand All @@ -248,7 +248,7 @@ boolean Plugin_042(byte function, char *string)
//==================================================================================
display_Header();
display_Name(PSTR("UPM/Esic"));
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02X%02X", rc, devicecode);
display_IDc(c_ID);
display_RAIN(rain);
Expand All @@ -271,7 +271,7 @@ boolean Plugin_042(byte function, char *string)
//==================================================================================
display_Header();
display_Name(PSTR("UPM/Esic"));
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02X%02X", rc, devicecode);
display_IDc(c_ID);
display_TEMP(temperature);
Expand All @@ -294,7 +294,7 @@ boolean Plugin_042(byte function, char *string)
//==================================================================================
display_Header();
display_Name(PSTR("UPM/Esic F2"));
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02X%02X", rc, devicecode);
display_IDc(c_ID);
display_TEMP(temperature);
Expand Down
4 changes: 2 additions & 2 deletions RFLink/Plugins/Plugin_043.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ boolean Plugin_043(byte function, char *string)
//==================================================================================
display_Header();
display_Name(PSTR("LaCrosse"));
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02X%02X", data[3], data[4]);
display_IDc(c_ID);
display_TEMP(temperature);
Expand All @@ -242,7 +242,7 @@ boolean Plugin_043(byte function, char *string)
//==================================================================================
display_Header();
display_Name(PSTR("LaCrosse"));
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02X%02X", data[3], data[4]);
display_IDc(c_ID);
display_HUM(humidity, HUM_HEX);
Expand Down
2 changes: 1 addition & 1 deletion RFLink/Plugins/Plugin_044.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ boolean Plugin_044(byte function, char *string)
//==================================================================================
display_Header();
display_Name(PSTR("Auriol V3"));
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02X%02X", rc, channel);
display_IDc(c_ID);
display_TEMP(temperature);
Expand Down
2 changes: 1 addition & 1 deletion RFLink/Plugins/Plugin_045.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ boolean Plugin_045(byte function, char *string)
//==================================================================================
display_Header();
display_Name(PSTR("Auriol"));
char c_ID[2];
char c_ID[5];
sprintf(c_ID, "%02X", rc);
display_IDc(c_ID);
display_TEMP(temperature);
Expand Down
2 changes: 1 addition & 1 deletion RFLink/Plugins/Plugin_046.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ boolean Plugin_046(byte function, char *string)
display_Name(PSTR("Auriol V2"));
else
display_Name(PSTR("Xiron"));
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02X%02X", rc, channel);
display_IDc(c_ID);
display_TEMP(temperature);
Expand Down
2 changes: 1 addition & 1 deletion RFLink/Plugins/Plugin_047.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ boolean Plugin_047(byte function, char *string)
//==================================================================================
display_Header();
display_Name(PSTR("Auriol V4"));
char c_ID[4];
char c_ID[5];
sprintf(c_ID, "%02X%02X", rc, channel);
display_IDc(c_ID);
display_TEMP(temperature);
Expand Down

0 comments on commit ed11b21

Please sign in to comment.