pradeep shekhar
/
Beacon_BAE_intergration_test_3
General testings
Fork of BEACON_CODE_NEW by
Diff: BCN.cpp
- Revision:
- 27:eb8c593c4ea8
- Parent:
- 26:89b6bb0859a1
- Child:
- 28:5bac883a0372
--- a/BCN.cpp Fri Oct 30 21:08:24 2015 +0000 +++ b/BCN.cpp Sun Nov 01 06:29:17 2015 +0000 @@ -98,8 +98,9 @@ uint8_t check_Temperature() { uint8_t temperature; - writereg(RF22_REG_0F_ADC_CONFIGURATION,0x80); + writereg(RF22_REG_0F_ADC_CONFIGURATION,0x00); writereg(RF22_REG_12_Temperature_Sensor_Calibration,0x20); + writereg(RF22_REG_0F_ADC_CONFIGURATION,0x80); wait(0.1); temperature = readreg(RF22_REG_11_ADC_Value); temperature = (float)temperature*0.5 - 64;