mirror of
https://github.com/merbanan/rtl_433.git
synced 2026-04-23 19:17:03 -04:00
Merge pull request #304 from ygator/master
Remove some compiler warnings
This commit is contained in:
2
src/data.c
Normal file → Executable file
2
src/data.c
Normal file → Executable file
@@ -423,7 +423,7 @@ static void print_kv_data(data_printer_context_t *printer_ctx, data_t *data, cha
|
||||
}
|
||||
}
|
||||
if (!strcmp(data->key, "time"))
|
||||
fprintf(file, "");
|
||||
/* fprintf(file, "") */ ;
|
||||
else if (!strcmp(data->key, "model"))
|
||||
fprintf(file, ":\t");
|
||||
else
|
||||
|
||||
2
src/devices/x10_rf.c
Normal file → Executable file
2
src/devices/x10_rf.c
Normal file → Executable file
@@ -17,7 +17,7 @@ static int X10_RF_callback(bitbuffer_t *bitbuffer) {
|
||||
// Validate package
|
||||
if ((bitbuffer->bits_per_row[1] == 32) // Dont waste time on a short package
|
||||
// && (bb[1][0] == (uint8_t)(~bb[1][1])) // Check integrity - apparently some chips may use both bytes..
|
||||
&& (bb[1][2] == (uint8_t)(~bb[1][3])) // Check integrity
|
||||
&& (bb[1][2] == ((0xff & (~bb[1][3])))) // Check integrity
|
||||
)
|
||||
{
|
||||
fprintf(stdout, "X10 RF:\n");
|
||||
|
||||
2
src/rtl_433.c
Normal file → Executable file
2
src/rtl_433.c
Normal file → Executable file
@@ -797,7 +797,7 @@ int main(int argc, char **argv) {
|
||||
char *in_filename = NULL;
|
||||
FILE *in_file;
|
||||
int n_read;
|
||||
int r, opt;
|
||||
int r = 0, opt;
|
||||
int i, gain = 0;
|
||||
int sync_mode = 0;
|
||||
int ppm_error = 0;
|
||||
|
||||
Reference in New Issue
Block a user