Commit e1fd3d5a authored by Michael 'PoempelFox' Meier's avatar Michael 'PoempelFox' Meier
Browse files

change default datarate to 17241 instead of 9579 when using RFM69. Can be...

change default datarate to 17241 instead of 9579 when using RFM69. Can be overridden with a -DRFM_DATARATE=...
parent 2156cbef
......@@ -432,14 +432,14 @@ int main(int argc, char ** argv)
mydaemondata->sensorid = strtoul(sensorid, NULL, 0);
} else { /* type+ID - this needs to be a known type */
switch (sensorid[0]) {
case 'F':
case 'f':
case 'L':
case 'l': /* these often use the faster data rate */
havefastsensors = 1;
/* no break here, fall through! */
case 'H':
case 'h':
case 'F':
case 'f':
mydaemondata->sensortype = toupper(sensorid[0]);
break;
default:
......
......@@ -26,7 +26,13 @@
#define RFMPIN_SCK PA4
#define RFM_FREQUENCY 868300ul
#ifndef RFM_DATARATE
#ifdef USERFM69INSTEAD /* RFM69: we default to the higher datarate. */
#define RFM_DATARATE 17241.0
#else /* Normal RFM12 */
#define RFM_DATARATE 9579.0
#endif /* Normal RFM12 */
#endif /* RFM_DATARATE not defined externally*/
#define PAYLOADSIZE 64
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment