diff for duplicates of <20190328094914.GA13981@sidong> diff --git a/a/1.txt b/N1/1.txt index 3e8f200..aa0ebc7 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -16,7 +16,7 @@ index 53928af696a6..8fa7b3346170 100644 @@ -319,6 +319,12 @@ rf69_set_tx_cfg(struct pi433_device *dev, struct pi433_tx_cfg *tx_cfg) } - if (tx_cfg->enable_sync = OPTION_ON) { + if (tx_cfg->enable_sync == OPTION_ON) { + ret = rf69_set_sync_size(dev->spi, tx_cfg->sync_length); + if (ret < 0) + return ret; @@ -31,7 +31,7 @@ index 53928af696a6..8fa7b3346170 100644 } - /* configure sync, if enabled */ -- if (tx_cfg->enable_sync = OPTION_ON) { +- if (tx_cfg->enable_sync == OPTION_ON) { - ret = rf69_set_sync_size(dev->spi, tx_cfg->sync_length); - if (ret < 0) - return ret; diff --git a/a/content_digest b/N1/content_digest index 27b7700..1b006cb 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -30,7 +30,7 @@ "@@ -319,6 +319,12 @@ rf69_set_tx_cfg(struct pi433_device *dev, struct pi433_tx_cfg *tx_cfg)\n" " \t}\n" " \n" - " \tif (tx_cfg->enable_sync = OPTION_ON) {\n" + " \tif (tx_cfg->enable_sync == OPTION_ON) {\n" "+\t\tret = rf69_set_sync_size(dev->spi, tx_cfg->sync_length);\n" "+\t\tif (ret < 0)\n" "+\t\t\treturn ret;\n" @@ -45,7 +45,7 @@ " \t}\n" " \n" "-\t/* configure sync, if enabled */\n" - "-\tif (tx_cfg->enable_sync = OPTION_ON) {\n" + "-\tif (tx_cfg->enable_sync == OPTION_ON) {\n" "-\t\tret = rf69_set_sync_size(dev->spi, tx_cfg->sync_length);\n" "-\t\tif (ret < 0)\n" "-\t\t\treturn ret;\n" @@ -60,4 +60,4 @@ "-- \n" 2.17.1 -f4fc9f8db19d838604167bddaf02896d57d2d63aa1657061106c37cfa9b10fe8 +ec9d475b7bda1129d8bca06ce64829222b7ea911daa7fb90977391298dff553d
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.