QuickAlert/watchapp/src/quick_alert.c
// calls da police. Sends a signal to the companion service, and pulses two vibrations.
calls da police. Sends a signal to the companion service, and pulses two vibrations.
calls da police . Sends a signal to the companion service and pulses two vibrations .
static void s_call_police(void *data) {
  DictionaryIterator *iter;
  app_message_outbox_begin(&iter);
  dict_write_uint8(iter, 42, 42);
  app_message_outbox_send();
  app_timer_register(5*PAUSE_LEN, s_reset_app, NULL);
  static const uint32_t segments[] = { 750, 250, 750 };
  VibePattern pat = {
    .durations = segments,
    .num_segments = ARRAY_LENGTH(segments),
  };
  vibes_enqueue_custom_pattern(pat);
  s_curr_state = 5;
}
static void s_call_police ( void * data ) { DictionaryIterator * iter ; app_message_outbox_begin ( & iter ) ; dict_write_uint8 ( iter , 42 , 42 ) ; app_message_outbox_send ( ) ; app_timer_register ( 5 * PAUSE_LEN , s_reset_app , NULL ) ; static const uint32_t segments [ ] = { 750 , 250 , 750 } ; VibePattern pat = { . durations = segments , . num_segments = ARRAY_LENGTH ( segments ) , } ; vibes_enqueue_custom_pattern ( pat ) ; s_curr_state = 5 ; }
calls da police.
calls da police .
// two long vibrations