diff --git a/wh1080_rf.c b/wh1080_rf.c index 5a9f7dc..6b7bd03 100755 --- a/wh1080_rf.c +++ b/wh1080_rf.c @@ -118,7 +118,7 @@ uint16_t cmd_fifo = CMD_FIFO|0x00; uint16_t cmd_config = CMD_CONFIG|BAND_433|LOAD_CAP_12C0|BW_400; - uint16_t cmd_rcon = (CMD_RCON|RX_EN|VDI_DRSSI|LNA_6|RSSI_85); + uint16_t cmd_rcon = (CMD_RCON|RX_EN|VDI_DRSSI|LNA_6|RSSI_79); uint16_t cmd_dfilter = (CMD_DFILTER|CR_LOCK_FAST|FILTER_OOK); #endif @@ -392,7 +392,7 @@ oldrssitime = TIMER_ARM_COUNT; // Switch to realtime scheduler - scheduler_realtime(); + // scheduler_realtime(); do { // Read the GPIO pin for clocked DATA value @@ -510,7 +510,7 @@ calculate_values(bytes, pressure_hpa, (wu_settings != NULL), (mqtt_settings != NULL)); // Wait for remainder of 47 seconds in standard scheduler until we can expect the next read - scheduler_standard(); + // scheduler_standard(); do { elapsed = (TIMER_ARM_COUNT - wait_start) / 1000000; @@ -519,7 +519,7 @@ usleep(250000); } while(elapsed < 47); printf("Listening for transmission\n"); - scheduler_realtime(); + // scheduler_realtime(); } } count = 0;