Revision ce12e797 test/periphery-lld/bq27500_v1_bq241xx_v1/aos_test_bq27500_bq241xx.c
test/periphery-lld/bq27500_v1_bq241xx_v1/aos_test_bq27500_bq241xx.c | ||
---|---|---|
51 | 51 |
aosDbgCheck(test->data != NULL && ((aos_test_bq27500bq241xxdata_t*)test->data)->bq27500 != NULL && ((aos_test_bq27500bq241xxdata_t*)test->data)->bq241xx != 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 |
uint16_t dst; |
57 | 57 |
bq27500_lld_flags_t flags; |
... | ... | |
60 | 60 |
uint32_t sleeptime_s; |
61 | 61 |
bq241xx_lld_charge_state_t charge; |
62 | 62 |
|
63 |
aosTestResultInit(&result); |
|
64 |
|
|
63 | 65 |
chprintf(stream, "check for battery...\n"); |
64 | 66 |
status = bq27500_lld_std_command(((aos_test_bq27500bq241xxdata_t*)test->data)->bq27500, BQ27500_LLD_STD_CMD_Flags, &dst, ((aos_test_bq27500bq241xxdata_t*)test->data)->timeout); |
65 | 67 |
flags.value = dst; |
Also available in: Unified diff