Revision ce12e797 test/periphery-lld/MPR121_v1/aos_test_MPR121.c

View differences:

test/periphery-lld/MPR121_v1/aos_test_MPR121.c
52 52
  aosDbgCheck(test->data != NULL && ((aos_test_mpr121data_t*)test->data)->mprd != NULL);
53 53

  
54 54
  // local variables
55
  aos_testresult_t result = {0, 0};
55
  aos_testresult_t result;
56 56
  int32_t status;
57 57
  mpr121_lld_config_t cfg;
58 58
  uint8_t data = 0;
......
63 63
  event_listener_t event_listener;
64 64
  aos_timestamp_t tstart, tcurrent, tend;
65 65

  
66
  aosTestResultInit(&result);
67

  
66 68
  chprintf(stream, "soft reset...\n");
67 69
  status = mpr121_lld_soft_reset(((aos_test_mpr121data_t*)test->data)->mprd, ((aos_test_mpr121data_t*)test->data)->timeout);
68 70
  status |= mpr121_lld_read_config(((aos_test_mpr121data_t*)test->data)->mprd, &cfg, ((aos_test_mpr121data_t*)test->data)->timeout);

Also available in: Unified diff