init
Dependencies: aconno_I2C Lis2dh12 WatchdogTimer
Diff: main.cpp
- Revision:
- 47:cc6d4d0bf897
- Parent:
- 46:b95fe3484d88
- Child:
- 48:64b1613941d5
--- a/main.cpp Sun Jan 20 22:05:07 2019 +0000 +++ b/main.cpp Mon Jan 21 19:43:17 2019 +0000 @@ -498,7 +498,7 @@ if(TEMP_o != -1) { RET_setting_impact_g = TEMP_o; } if(TEMP_p != -1) { RET_setting_impact_alert = TEMP_p; } if(TEMP_q != -1) { RET_setting_connection_timeout = TEMP_q; } - if(RET_setting_connection_timeout < 30 || RET_setting_connection_timeout > 240) { RET_setting_connection_timeout = DEFAULT_CONNECTION_TIMEOUT; } + if(RET_setting_connection_timeout < 60 || RET_setting_connection_timeout > 240) { RET_setting_connection_timeout = DEFAULT_CONNECTION_TIMEOUT; } if(TEMP_r != -1) { RET_setting_beacon_interval_seconds = TEMP_r; } if(TEMP_s != -1) { RET_setting_beacon_scan = TEMP_s; } if(TEMP_t != -1) { RET_setting_activity_mode = TEMP_t; } @@ -918,7 +918,7 @@ RET_coldBoot = 1; switch(NRF_POWER->RESETREAS) { case 0x00000001 : - if(DEBUG_ON){debug_prep();snprintf(GLOBAL_debug_buffer, sizeof(GLOBAL_debug_buffer),"RR:PI\n");debug_exe();} + if(DEBUG_ON){debug_prep();snprintf(GLOBAL_debug_buffer, sizeof(GLOBAL_debug_buffer),"RR:HW\n");debug_exe();} break; case 0x00000002 : if(DEBUG_ON){debug_prep();snprintf(GLOBAL_debug_buffer, sizeof(GLOBAL_debug_buffer),"RR:WD\n");debug_exe();}