Revision ce12e797 test/periphery-lld/bq241xx_v1/aos_test_bq241xx.c

View differences:

test/periphery-lld/bq241xx_v1/aos_test_bq241xx.c
51 51
  aosDbgCheck(test->data != NULL);
52 52

  
53 53
  // local variables
54
  aos_testresult_t result = {0, 0};
54
  aos_testresult_t result;
55 55
  int32_t status;
56 56
  bq241xx_lld_enable_t en[3];
57 57
  bq241xx_lld_charge_state_t charge;
58 58

  
59
  aosTestResultInit(&result);
60

  
59 61
  chprintf(stream, "read enable pin...\n");
60 62
  status = bq241xx_lld_get_enabled(((aos_test_bq241xxdata_t*)test->data)->driver, &en[0]);
61 63
  chprintf(stream, "\t\tcurrently %s\n", (en[0] == BQ241xx_LLD_ENABLED) ? "enabled" : "disabled");

Also available in: Unified diff