comparison src/cs/layer1/cfile/l1_trace.c @ 332:70e3acc5d4c8

L1: prep for charging being a possible cause of big sleep
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 14 Dec 2017 18:16:09 +0000
parents 75188c031f4e
children 68e0373035d7
comparison
equal deleted inserted replaced
331:8166b0afcf8c 332:70e3acc5d4c8
1602 array_special_cases[index]); 1602 array_special_cases[index]);
1603 } 1603 }
1604 else 1604 else
1605 // big sleep 1605 // big sleep
1606 { 1606 {
1607 char *array_string[]={"undefined","ligth on","uart","sim","gauging","sleep mode","DSP","BT","??"}; 1607 char *array_string[]={"undefined","light on","uart","sim","gauging","sleep mode","DSP","BT","charging"};
1608 sprintf (str," big sleep: %ld %ld %d %d (cause:%s) %s\n\r", 1608 sprintf (str," big sleep: %ld %ld %d %d (cause:%s) %s\n\r",
1609 ((T_TRACE_INFO *)(msg->SigP))->tab[0], 1609 ((T_TRACE_INFO *)(msg->SigP))->tab[0],
1610 ((T_TRACE_INFO *)(msg->SigP))->tab[1], 1610 ((T_TRACE_INFO *)(msg->SigP))->tab[1],
1611 ((T_TRACE_INFO *)(msg->SigP))->tab[3], 1611 ((T_TRACE_INFO *)(msg->SigP))->tab[3],
1612 int_id, 1612 int_id,
8037 array_special_cases[index]); 8037 array_special_cases[index]);
8038 } 8038 }
8039 else 8039 else
8040 // big sleep 8040 // big sleep
8041 { 8041 {
8042 char *array_string[]={"undefined","ligth on","uart","sim","gauging","sleep mode","DSP","BT","??"}; 8042 char *array_string[]={"undefined","light on","uart","sim","gauging","sleep mode","DSP","BT","charging"};
8043 sprintf (str," big sleep: %ld %ld %d %d (cause:%s) %s\n\r", 8043 sprintf (str," big sleep: %ld %ld %d %d (cause:%s) %s\n\r",
8044 start_fn, 8044 start_fn,
8045 end_fn, 8045 end_fn,
8046 wakeup_type, 8046 wakeup_type,
8047 int_id, 8047 int_id,