Exemple #1
0
 def parse(self, data):
     if data[1] == 0:
         return 'no deep sleep, not enough time (mode: %s)' % get_sleep_mode(
             data[0])
     else:
         return 'no deep sleep, pending interrupt (mode: %s)' % get_sleep_mode(
             data[0])
Exemple #2
0
 def parse(self, data):
     return 'deep_sleep_exit_complete: (mode: %s)' % get_sleep_mode(data[0])
Exemple #3
0
 def parse(self, data):
     return 'deep_sleep_enter_complete: (mode: %s)' % (get_sleep_mode(
         data[0]))
Exemple #4
0
 def parse(self, data):
     return 'deep_sleep_enter: (mode: %s) (count: %i)' % (get_sleep_mode(
         data[0]), data[1])
Exemple #5
0
 def parse(self, data):
     return 'deep_sleep_exit_complete: (mode: %s)' % get_sleep_mode(data[0]) 
Exemple #6
0
 def parse(self, data):
     return 'deep_sleep_enter_complete: (mode: %s)' % (get_sleep_mode(data[0])) 
Exemple #7
0
 def parse(self, data):
     if data[1] == 0:
         return 'no deep sleep, not enough time (mode: %s)' % get_sleep_mode(data[0])
     else:
         return 'no deep sleep, pending interrupt (mode: %s)' % get_sleep_mode(data[0])
Exemple #8
0
 def parse(self, data):
     return 'deep_sleep_enter: (mode: %s) (count: %i)' % (get_sleep_mode(data[0]), data[1])