Change r_device.fields to constant pointer (#2421)
Allows for static "output_fields" to be stored in readonly memory on embedded architectures.
This commit is contained in:
parent
2a9ce36123
commit
ecb0b361ad
217 changed files with 240 additions and 235 deletions
include
src/devices
abmt.cacurite.cacurite_01185m.cakhan_100F14.calecto.cambient_weather.cambientweather_tx8300.cambientweather_wh31e.cant_antplus.carchos_tbh.catech_ws308.cauriol_4ld5661.cauriol_aft77b2.cauriol_afw2a1.cauriol_ahfl.cauriol_hg02832.cbadger_water.cbaldr_rain.cblueline.cblyss.cbrennenstuhl_rcs_2044.cbresser_3ch.cbresser_5in1.cbresser_6in1.cbresser_7in1.cbt_rain.cburnhardbbq.ccalibeur.ccardin.ccavius.cced7000.ccelsia_czc1.cchuango.ccmr113.ccompanion_wtr001.ccotech_36_7959.ccurrent_cost.cdanfoss.cdigitech_xc0324.cdirectv.cdish_remote_6_3.cdsc.cecodhome.cecowitt.cefergy_e2_classic.cefergy_optical.cefth800.celro_db286a.celv.cemax.cemontx.cemos_e6016.cemos_e6016_rain.cenocean_erp1.cert_idm.cert_scm.cesa.cesic_emt7110.cesperanza_ews.ceurochron.cfineoffset.cfineoffset_wh1050.cfineoffset_wh1080.cfineoffset_wh31l.cfineoffset_wh45.cfineoffset_wn34.cfineoffset_ws80.cflex.cflowis.cfordremote.cfs20.cft004b.cfunkbus.cgasmate_ba1008.cge_coloreffects.cgeneric_motion.cgeneric_remote.cgeneric_temperature_sensor.cgeo_minim.cgovee.cgt_tmbbq05.cgt_wt_02.cgt_wt_03.chcs200.chideki.cholman_ws5029.chondaremote.choneywell.choneywell_cm921.choneywell_wdb.cht680.cibis_beacon.cikea_sparsnas.cinfactory.cinkbird_ith20r.cinovalley-kw9015b.cinsteon.cinterlogix.cintertechno.c
|
@ -71,7 +71,7 @@ typedef struct r_device {
|
|||
struct r_device *(*create_fn)(char *args);
|
||||
unsigned priority; ///< Run later and only if no previous events were produced
|
||||
unsigned disabled; ///< 0: default enabled, 1: default disabled, 2: disabled, 3: disabled and hidden
|
||||
char const **fields; ///< List of fields this decoder produces; required for CSV output. NULL-terminated.
|
||||
char const *const *fields; ///< List of fields this decoder produces; required for CSV output. NULL-terminated.
|
||||
|
||||
/* public for each decoder */
|
||||
int verbose;
|
||||
|
|
|
@ -81,7 +81,7 @@ static int abmt_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"temperature_C",
|
||||
|
|
|
@ -132,7 +132,7 @@ int const acurite_5n1_winddirections[] = {
|
|||
// 11 = A
|
||||
static char const *acurite_getChannel(uint8_t byte)
|
||||
{
|
||||
static char const *channel_strs[] = {"C", "E", "B", "A"}; // 'E' stands for error
|
||||
static char const *const channel_strs[] = {"C", "E", "B", "A"}; // 'E' stands for error
|
||||
|
||||
int channel = (byte & 0xC0) >> 6;
|
||||
return channel_strs[channel];
|
||||
|
@ -1861,7 +1861,7 @@ static int acurite_00275rm_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return result;
|
||||
}
|
||||
|
||||
static char const *acurite_rain_gauge_output_fields[] = {
|
||||
static char const *const acurite_rain_gauge_output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"rain_mm",
|
||||
|
@ -1880,7 +1880,7 @@ r_device const acurite_rain_896 = {
|
|||
.fields = acurite_rain_gauge_output_fields,
|
||||
};
|
||||
|
||||
static char const *acurite_th_output_fields[] = {
|
||||
static char const *const acurite_th_output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
@ -1906,7 +1906,7 @@ r_device const acurite_th = {
|
|||
* For Acurite 592 TXR Temp/Humidity, but
|
||||
* Should match Acurite 592TX, 5-n-1, etc.
|
||||
*/
|
||||
static char const *acurite_txr_output_fields[] = {
|
||||
static char const *const acurite_txr_output_fields[] = {
|
||||
"model",
|
||||
"message_type", // TODO: remove this
|
||||
"id",
|
||||
|
@ -1957,7 +1957,7 @@ r_device const acurite_txr = {
|
|||
* A transmission consists of two packets that run into each other.
|
||||
* There should be 40 bits of data though. But the last bit can't be detected.
|
||||
*/
|
||||
static char const *acurite_986_output_fields[] = {
|
||||
static char const *const acurite_986_output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
@ -1986,7 +1986,7 @@ r_device const acurite_986 = {
|
|||
*
|
||||
*/
|
||||
|
||||
static char const *acurite_606_output_fields[] = {
|
||||
static char const *const acurite_606_output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
@ -1995,7 +1995,7 @@ static char const *acurite_606_output_fields[] = {
|
|||
NULL,
|
||||
};
|
||||
|
||||
static char const *acurite_590_output_fields[] = {
|
||||
static char const *const acurite_590_output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
@ -2023,7 +2023,7 @@ r_device const acurite_606 = {
|
|||
.fields = acurite_606_output_fields,
|
||||
};
|
||||
|
||||
static char const *acurite_00275rm_output_fields[] = {
|
||||
static char const *const acurite_00275rm_output_fields[] = {
|
||||
"model",
|
||||
"subtype",
|
||||
"id",
|
||||
|
|
|
@ -114,7 +114,7 @@ static int acurite_01185m_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return result;
|
||||
}
|
||||
|
||||
static char const *acurite_01185m_output_fields[] = {
|
||||
static char const *const acurite_01185m_output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -62,7 +62,7 @@ static int akhan_rke_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"data",
|
||||
|
|
|
@ -208,7 +208,7 @@ static int alectov1_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return DECODE_FAIL_SANITY;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -157,7 +157,7 @@ static int ambient_weather_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -118,7 +118,7 @@ static int ambientweather_tx8300_callback(r_device *decoder, bitbuffer_t *bitbuf
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -356,7 +356,7 @@ static int ambientweather_whx_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return events;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -139,7 +139,7 @@ static int ant_antplus_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"network",
|
||||
"channel",
|
||||
|
|
|
@ -212,7 +212,7 @@ static int archos_tbh_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
}
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
|
|
@ -119,7 +119,7 @@ static int atech_ws308_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"temperature_C",
|
||||
|
|
|
@ -77,7 +77,7 @@ static int auriol_4ld5661_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
|
|
@ -137,7 +137,7 @@ static int auriol_aft77_b2_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"temperature_C",
|
||||
|
|
|
@ -105,7 +105,7 @@ static int auriol_afw2a1_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -96,7 +96,7 @@ static int auriol_ahfl_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -89,7 +89,7 @@ static int auriol_hg02832_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -138,7 +138,7 @@ static int badger_orion_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
}
|
||||
|
||||
// Note: At this time the exact meaning of the flags is not known.
|
||||
static char const *badger_output_fields[] = {
|
||||
static char const *const badger_output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"flags_1",
|
||||
|
|
|
@ -85,7 +85,7 @@ static int baldr_rain_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"flags",
|
||||
|
|
|
@ -384,7 +384,7 @@ static int blueline_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return ((payloads_decoded > 0) ? payloads_decoded : most_applicable_failure);
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"flags",
|
||||
|
|
|
@ -56,7 +56,7 @@ static int blyss_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return DECODE_FAIL_SANITY;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
NULL,
|
||||
|
|
|
@ -113,7 +113,7 @@ static int brennenstuhl_rcs_2044_callback(r_device *decoder, bitbuffer_t *bitbuf
|
|||
return counter;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"key",
|
||||
|
|
|
@ -95,7 +95,7 @@ static int bresser_3ch_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -160,7 +160,7 @@ static int bresser_5in1_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
|
|
@ -218,7 +218,7 @@ static int bresser_6in1_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -134,7 +134,7 @@ static int bresser_7in1_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"temperature_C",
|
||||
|
|
|
@ -84,7 +84,7 @@ static int bt_rain_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -119,7 +119,7 @@ static int burnhardbbq_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -116,7 +116,7 @@ static int calibeur_rf104_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"temperature_C",
|
||||
|
|
|
@ -109,7 +109,7 @@ static int cardin_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"dipswitch",
|
||||
"rbutton",
|
||||
|
|
|
@ -118,7 +118,7 @@ static int cavius_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
|
|
@ -93,7 +93,7 @@ static int ced7000_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"count",
|
||||
|
|
|
@ -132,7 +132,7 @@ static int celsia_czc1_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"heat",
|
||||
|
|
|
@ -87,7 +87,7 @@ static int chuango_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"cmd",
|
||||
|
|
|
@ -109,7 +109,7 @@ static int cmr113_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"current_1_A",
|
||||
"current_2_A",
|
||||
|
|
|
@ -127,7 +127,7 @@ static int companion_wtr001_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"temperature_C",
|
||||
"mic",
|
||||
|
|
|
@ -133,7 +133,7 @@ static int cotech_36_7959_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *cotech_36_7959_output_fields[] = {
|
||||
static char const *const cotech_36_7959_output_fields[] = {
|
||||
"model",
|
||||
//"subtype",
|
||||
"id",
|
||||
|
|
|
@ -114,7 +114,7 @@ static int current_cost_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"subtype",
|
||||
|
|
|
@ -147,7 +147,7 @@ static int danfoss_cfr_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return DECODE_ABORT_LENGTH;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"temperature_C",
|
||||
|
|
|
@ -208,7 +208,7 @@ static int digitech_xc0324_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return events > 0 ? events : ret;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"temperature_C",
|
||||
|
|
|
@ -360,7 +360,7 @@ static int directv_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"button_id",
|
||||
|
|
|
@ -133,7 +133,7 @@ static int dish_remote_6_3_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"button",
|
||||
NULL,
|
||||
|
|
|
@ -244,7 +244,7 @@ static int dsc_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return result;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"closed",
|
||||
|
|
|
@ -171,7 +171,7 @@ static int ecodhome_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"message_type",
|
||||
|
|
|
@ -106,7 +106,7 @@ static int ecowitt_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -110,7 +110,7 @@ static int efergy_e2_classic_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
|
|
@ -124,7 +124,7 @@ static int efergy_optical_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"pulses",
|
||||
|
|
|
@ -121,7 +121,7 @@ static int eurochron_efth800_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -49,7 +49,7 @@ static int elro_db286a_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
NULL,
|
||||
|
|
|
@ -95,7 +95,7 @@ static int em1000_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *elv_em1000_output_fields[] = {
|
||||
static char const *const elv_em1000_output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"seq",
|
||||
|
@ -263,7 +263,7 @@ static int ws2000_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *elv_ws2000_output_fields[] = {
|
||||
static char const *const elv_ws2000_output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"subtype",
|
||||
|
|
|
@ -250,7 +250,7 @@ static int emax_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -138,7 +138,7 @@ static int emontx_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return events;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"node",
|
||||
"ct1",
|
||||
|
|
|
@ -124,7 +124,7 @@ static int emos_e6016_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -99,7 +99,7 @@ static int emos_e6016_rain_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -90,7 +90,7 @@ static int enocean_erp1_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"telegram",
|
||||
"mic",
|
||||
|
|
|
@ -581,7 +581,7 @@ static int ert_netidm_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
|
||||
// Common fields
|
||||
"model",
|
||||
|
|
|
@ -95,7 +95,7 @@ static int ert_scm_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"physical_tamper",
|
||||
|
|
|
@ -87,7 +87,7 @@ static int esa_cost_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"impulses",
|
||||
|
|
|
@ -91,7 +91,7 @@ static int esic_emt7110_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"power_W",
|
||||
|
|
|
@ -112,7 +112,7 @@ static int esperanza_ews_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -83,7 +83,7 @@ static int eurochron_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
|
|
@ -953,7 +953,7 @@ static int fineoffset_WH0530_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"temperature_C",
|
||||
|
@ -962,7 +962,7 @@ static char const *output_fields[] = {
|
|||
NULL,
|
||||
};
|
||||
|
||||
static char const *output_fields_WH25[] = {
|
||||
static char const *const output_fields_WH25[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
@ -984,7 +984,7 @@ static char const *output_fields_WH25[] = {
|
|||
NULL,
|
||||
};
|
||||
|
||||
static char const *output_fields_WH51[] = {
|
||||
static char const *const output_fields_WH51[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
@ -996,7 +996,7 @@ static char const *output_fields_WH51[] = {
|
|||
NULL,
|
||||
};
|
||||
|
||||
static char const *output_fields_WH0530[] = {
|
||||
static char const *const output_fields_WH0530[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
|
|
@ -120,7 +120,7 @@ static int fineoffset_wh1050_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
|
|
@ -326,7 +326,7 @@ static int fineoffset_wh1080_callback_fsk(r_device *decoder, bitbuffer_t *bitbuf
|
|||
return fineoffset_wh1080_callback(decoder, bitbuffer, TYPE_FSK);
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"subtype",
|
||||
"id",
|
||||
|
|
|
@ -154,7 +154,7 @@ static int fineoffset_wh31l_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
|
|
@ -128,7 +128,7 @@ static int fineoffset_wh45_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
|
|
@ -110,7 +110,7 @@ static int fineoffset_wn34_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
|
|
@ -113,7 +113,7 @@ static int fineoffset_ws80_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
|
|
@ -342,7 +342,7 @@ static int flex_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"count",
|
||||
"num_rows",
|
||||
|
|
|
@ -122,7 +122,7 @@ static int flowis_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"type",
|
||||
|
|
|
@ -62,7 +62,7 @@ static int fordremote_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return found;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"code",
|
||||
|
|
|
@ -33,7 +33,7 @@ Command extensions are also not decoded. feel free to improve!
|
|||
|
||||
static int fs20_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
||||
{
|
||||
static char const *cmd_tab[] = {
|
||||
static char const *const cmd_tab[] = {
|
||||
"off",
|
||||
"on, 6.25%",
|
||||
"on, 12.5%",
|
||||
|
@ -122,7 +122,7 @@ static int fs20_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"housecode",
|
||||
"address",
|
||||
|
|
|
@ -65,7 +65,7 @@ static int ft004b_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"temperature_C",
|
||||
NULL,
|
||||
|
|
|
@ -160,7 +160,7 @@ static int funkbus_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return events;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
|
|
@ -92,7 +92,7 @@ static int gasmate_ba1008_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"temperature_C",
|
||||
"unknown_1",
|
||||
|
|
|
@ -157,7 +157,7 @@ static int ge_coloreffects_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return events > 0 ? events : ret;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"command",
|
||||
|
|
|
@ -62,7 +62,7 @@ static int generic_motion_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return DECODE_ABORT_EARLY;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"code",
|
||||
NULL,
|
||||
|
|
|
@ -71,7 +71,7 @@ static int generic_remote_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"cmd",
|
||||
|
|
|
@ -60,7 +60,7 @@ static int generic_temperature_sensor_callback(r_device *decoder, bitbuffer_t *b
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
|
|
@ -343,7 +343,7 @@ static int minim_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
}
|
||||
|
||||
// List of fields to appear in the `-F csv` output.
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"power_VA",
|
||||
|
|
|
@ -238,7 +238,7 @@ static int govee_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
|
|
@ -127,7 +127,7 @@ static int gt_tmbbq05_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"temperature_F",
|
||||
|
|
|
@ -115,7 +115,7 @@ static int gt_wt_02_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return counter;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -146,7 +146,7 @@ static int gt_wt_03_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -86,7 +86,7 @@ static int hcs200_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
|
|
@ -226,7 +226,7 @@ static int hideki_ts04_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -118,7 +118,7 @@ static int holman_ws5029pcm_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"temperature_C",
|
||||
|
|
|
@ -18,7 +18,7 @@ Note that this is actually Manchester coded and should be changed.
|
|||
*/
|
||||
#include "decoder.h"
|
||||
|
||||
static char const *command_code[] = {"boot", "unlock" , "lock",};
|
||||
static char const *const command_code[] = {"boot", "unlock" , "lock",};
|
||||
|
||||
static char const *get_command_codes(const uint8_t *bytes)
|
||||
{
|
||||
|
@ -61,7 +61,7 @@ static int hondaremote_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"code",
|
||||
|
|
|
@ -123,7 +123,7 @@ static int honeywell_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -418,7 +418,7 @@ static int honeywell_cm921_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"ids",
|
||||
#ifdef _DEBUG
|
||||
|
|
|
@ -113,7 +113,7 @@ static int honeywell_wdb_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"subtype",
|
||||
"id",
|
||||
|
|
|
@ -79,7 +79,7 @@ static int ht680_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"button1",
|
||||
|
|
|
@ -80,7 +80,7 @@ static int ibis_beacon_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"counter",
|
||||
|
|
|
@ -274,7 +274,7 @@ static int ikea_sparsnas_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"sequence",
|
||||
|
|
|
@ -98,7 +98,7 @@ static int infactory_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"channel",
|
||||
|
|
|
@ -128,7 +128,7 @@ static int inkbird_ith20r_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery",
|
||||
|
|
|
@ -74,7 +74,7 @@ static int kw9015b_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *kw9015b_csv_output_fields[] = {
|
||||
static char const *const kw9015b_csv_output_fields[] = {
|
||||
"model",
|
||||
"id",
|
||||
"battery_ok",
|
||||
|
|
|
@ -458,7 +458,7 @@ static int insteon_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
*
|
||||
*/
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
// "id",
|
||||
// "data",
|
||||
|
|
|
@ -214,7 +214,7 @@ static int interlogix_decode(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"subtype",
|
||||
"id",
|
||||
|
|
|
@ -51,7 +51,7 @@ static int intertechno_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static char const *output_fields[] = {
|
||||
static char const *const output_fields[] = {
|
||||
"model",
|
||||
"type",
|
||||
"id",
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue