[debug] turn off LED before shutdown

This commit is contained in:
weiting2
2020-04-08 16:48:37 +08:00
parent 24634276aa
commit b9e839ff41
3 changed files with 5 additions and 4 deletions
@@ -827,9 +827,10 @@ static void headstage_update_cis_instruction(uint8_t cis_oper) {
#define THREE_POINT_THREE_VOLT 845
if (AONBatMonBatteryVoltageGet() < THREE_POINT_THREE_VOLT*1.2){
headstage_led_color(COLOR_BLACK)
headstage_power_shutdown();
}
#undef THREE_VOLT
#undef THREE_POINT_THREE_VOLT
break;
// uint8_t status = headstage_update_vis_volt(ins_len, instruction + 2, cdr_buf + 2);
//
@@ -4,6 +4,6 @@
#include <ti/drivers/Power.h>
#include <ti/drivers/power/PowerCC26XX.h>
#define headstage_power_shutdown() Power_shutdown(0, 0)
#define headstage_power_shutdown() Power_shutdown(NULL, 0)
#endif // HEADSTAGE_POWER_H
@@ -6,11 +6,11 @@
#define VERSION_DATE_MONTH 4
#define VERSION_DATE_DAY 8
#define VERSION_DATE_HOUR 16
#define VERSION_DATE_MINUTE 35
#define VERSION_DATE_MINUTE 48
// this is NOT the version hash !!
// it's the last version hash
#define VERSION_HASH 8e691ba69e0e3e678261a435e1b7ce7fbd321d43
#define VERSION_HASH 24634276aa09ba7effe92db05461ecf919b02512
#define VERSION_GIT_BRANCH Neulive2.0_developement
#endif