Skip to content

Commit a3ca20e

Browse files
committed
minor: Fix car remotes code style
1 parent 7d38570 commit a3ca20e

12 files changed

Lines changed: 59 additions & 48 deletions

src/devices/6sc2.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
the Free Software Foundation; either version 2 of the License, or
99
(at your option) any later version.
1010
*/
11-
/** @fn int six_sc_two_car_remote_decode(r_device *decoder, bitbuffer_t *bitbuffer)
12-
6SC2 - Car Remote (315 MHz)
11+
12+
#include "decoder.h"
13+
14+
/**
15+
6SC2 - Car Remote (315 MHz).
1316
1417
Manufacturer:
1518
- Unknown
@@ -44,8 +47,6 @@ PREAMBLE: hhhh ENCRYPTED: hh hh hh hh BUTTON: bbbb UNKNOWN: bbbb SEQUENCE: hhhh
4447
4548
*/
4649

47-
#include "decoder.h"
48-
4950
static int six_sc_two_car_remote_decode(r_device *decoder, bitbuffer_t *bitbuffer)
5051
{
5152
int row = bitbuffer_find_repeated_row(bitbuffer, 1, 48);

src/devices/alps_fwb1u545.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
the Free Software Foundation; either version 2 of the License, or
99
(at your option) any later version.
1010
*/
11-
/** @fn int alps_fwb1u545_car_remote_decode(r_device *decoder, bitbuffer_t *bitbuffer)
11+
12+
#include "decoder.h"
13+
14+
/**
1215
Alps FWB1U545 - Car Remote.
1316
1417
Manufacturer:
@@ -43,8 +46,6 @@ PREAMBLE: bbbbbbbb ID: hhhhhhhh BUTTON: bbbbbbbb BUTTON_XOR: bbbbbbbb SEQUENCE:
4346
4447
*/
4548

46-
#include "decoder.h"
47-
4849
static int alps_fwb1u545_car_remote_decode(r_device *decoder, bitbuffer_t *bitbuffer)
4950
{
5051
if (bitbuffer->bits_per_row[0] != 76 || bitbuffer->num_rows > 1) {

src/devices/astrostart_2000.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
the Free Software Foundation; either version 2 of the License, or
99
(at your option) any later version.
1010
*/
11-
/** @fn int astrostart_2000_decode(r_device *decoder, bitbuffer_t *bitbuffer)
12-
Astrostart 2000 - Car Remote 372.4 MHz
11+
12+
#include "decoder.h"
13+
14+
/**
15+
Astrostart 2000 - Car Remote 372.4 MHz.
1316
1417
Manufacturer:
1518
- Astroflex
@@ -55,8 +58,6 @@ BUTTON: bbbbbbbb INVERSE: bbbbbbbb ID: hhhhhhhh CHECKSUM: h
5558
5659
*/
5760

58-
#include "decoder.h"
59-
6061
static int astrostart_2000_decode(r_device *decoder, bitbuffer_t *bitbuffer)
6162
{
6263
if (bitbuffer->bits_per_row[0] != 52) {

src/devices/audiovox_pro_oe3b.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
the Free Software Foundation; either version 2 of the License, or
99
(at your option) any later version.
1010
*/
11-
/** @fn int audiovox_pro_oe3b_decode(r_device *decoder, bitbuffer_t *bitbuffer)
12-
Audiovox - Car Remote
11+
12+
#include "decoder.h"
13+
14+
/**
15+
Audiovox - Car Remote.
1316
1417
Manufacturer:
1518
- Audiovox
@@ -42,8 +45,6 @@ ID: hhhh x b x TRUNK:b x UNLOCK: b x LOCK: b h
4245
4346
*/
4447

45-
#include "decoder.h"
46-
4748
static int audiovox_pro_oe3b_decode(r_device *decoder, bitbuffer_t *bitbuffer)
4849
{
4950
if (bitbuffer->bits_per_row[0] != 25) {

src/devices/chrysler_car_remote.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
the Free Software Foundation; either version 2 of the License, or
99
(at your option) any later version.
1010
*/
11-
/** @fn int chrysler_car_remote_decode(r_device *decoder, bitbuffer_t *bitbuffer)
12-
Chrysler - Car Remote (315 MHz)
11+
12+
#include "decoder.h"
13+
14+
/**
15+
Chrysler - Car Remote (315 MHz).
1316
1417
Manufacturer:
1518
- Chrysler
@@ -51,8 +54,6 @@ ID: hhhhhhhh BUTTON: bbbb x MULTIPLE: b xx CHECKSUM: bbbbbbbb
5154
5255
*/
5356

54-
#include "decoder.h"
55-
5657
static int chrysler_car_remote_decode(r_device *decoder, bitbuffer_t *bitbuffer)
5758
{
5859
int events = 0;

src/devices/code_alarm_car_remote.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
the Free Software Foundation; either version 2 of the License, or
99
(at your option) any later version.
1010
*/
11-
/** @fn int code_alarm_frdpc2000_car_remote_decode(r_device *decoder, bitbuffer_t *bitbuffer)
12-
Code Alarm - Car Remote
11+
12+
#include "decoder.h"
13+
14+
/**
15+
Code Alarm - Car Remote.
1316
1417
Manufacturer:
1518
- Code Alarm
@@ -39,8 +42,6 @@ PREAMBLE: hhhh UNKNOWN: bbbb BUTTON: bbbb ID: hhhhhhhh bbbbbbbb
3942
4043
*/
4144

42-
#include "decoder.h"
43-
4445
static int code_alarm_frdpc2000_car_remote_decode(r_device *decoder, bitbuffer_t *bitbuffer)
4546
{
4647
if (bitbuffer->bits_per_row[0] != 60) {

src/devices/compustar_1wg3r.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
the Free Software Foundation; either version 2 of the License, or
99
(at your option) any later version.
1010
*/
11-
/** @fn int compustar_1wg3r_decode(r_device *decoder, bitbuffer_t *bitbuffer)
11+
12+
#include "decoder.h"
13+
#include "fatal.h"
14+
#include <stdlib.h>
15+
16+
/**
1217
Compustar 1WG3R - Car Remote
1318
1419
Manufacturer:
@@ -55,10 +60,6 @@ ID: hhhh UNKNOWN: bbb BUTTON_INVERSE: bbbbbbbb BUTTON: bbbbbbbb UNKNOWN: b
5560
5661
*/
5762

58-
#include "decoder.h"
59-
#include "fatal.h"
60-
#include <stdlib.h>
61-
6263
static int compustar_1wg3r_decode(r_device *decoder, bitbuffer_t *bitbuffer)
6364
{
6465
int rows_data_idx = -1;

src/devices/continental_car_remote.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
the Free Software Foundation; either version 2 of the License, or
99
(at your option) any later version.
1010
*/
11-
/** @fn int continental_car_remote_decode(r_device *decoder, bitbuffer_t *bitbuffer)
12-
Continental - Car Remote (313 MHz)
11+
12+
#include "decoder.h"
13+
14+
/**
15+
Continental - Car Remote (313 MHz).
1316
1417
Manufacturer:
1518
- Continental
@@ -47,8 +50,6 @@ PREAMBLE: bbbbbbbb bbbbbbbb bbbb ID: hhhhhhhh UNKNOWN: bbbbbbbb BUTTON: bbbb UNK
4750
4851
*/
4952

50-
#include "decoder.h"
51-
5253
static int continental_car_remote_decode(r_device *decoder, bitbuffer_t *bitbuffer)
5354
{
5455
if (bitbuffer->bits_per_row[0] < 132) {

src/devices/gm_car_remote.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
the Free Software Foundation; either version 2 of the License, or
99
(at your option) any later version.
1010
*/
11-
/** @fn int gm_car_remote_decode(r_device *decoder, bitbuffer_t *bitbuffer)
12-
General Motors - Car Remote (315 MHz)
11+
12+
#include "decoder.h"
13+
14+
/**
15+
General Motors - Car Remote (315 MHz).
1316
1417
Manufacturer:
1518
- General Motors
@@ -43,8 +46,6 @@ UNKNOWN: bbbbbbbb BUTTON_CHECKSUM: bbbb BUTTON: bbbb ID: hhhhhhhh SEQUENCE: hhhh
4346
4447
*/
4548

46-
#include "decoder.h"
47-
4849
static int gm_car_remote_decode(r_device *decoder, bitbuffer_t *bitbuffer)
4950
{
5051
if (bitbuffer->bits_per_row[0] < 113 || bitbuffer->num_rows > 1) {

src/devices/hcs361.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
the Free Software Foundation; either version 2 of the License, or
99
(at your option) any later version.
1010
*/
11-
/** @fn hcs361_decode(r_device *decoder, bitbuffer_t *bitbuffer)
11+
12+
#include "decoder.h"
13+
14+
/**
1215
Microchip HCS361 KeeLoq Code Hopping Encoder based remotes.
1316
1417
Data Format:
@@ -59,8 +62,6 @@ Timing is selected by the two flags coded into the EEPROM.
5962
6063
*/
6164

62-
#include "decoder.h"
63-
6465
static int hcs361_decode(r_device *decoder, bitbuffer_t *bitbuffer)
6566
{
6667
if (bitbuffer->num_rows < 2 || bitbuffer->bits_per_row[1] != 67) {

0 commit comments

Comments
 (0)