This is an automated email from the ASF dual-hosted git repository. mlaz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push: new c2579ed close the correct device in battery_adc_close new f70171e Merge pull request #1907 from gonccalo/fix_battery_adc_close c2579ed is described below commit c2579ed5d89b4e7ce1133e643c381ec9c9591d47 Author: Gonçalo Grilo <gonc...@chippd.com> AuthorDate: Thu Jul 4 19:29:21 2019 +0100 close the correct device in battery_adc_close --- hw/battery/src/battery_adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/battery/src/battery_adc.c b/hw/battery/src/battery_adc.c index 80093b7..dfe6f0a 100644 --- a/hw/battery/src/battery_adc.c +++ b/hw/battery/src/battery_adc.c @@ -137,7 +137,7 @@ battery_adc_close(struct os_dev *dev) { struct battery_adc *bat_adc = (struct battery_adc *)dev; if (bat_adc->adc_dev) { - os_dev_close((struct os_dev *)&bat_adc->dev); + os_dev_close((struct os_dev *)&bat_adc->adc_dev); bat_adc->adc_dev = NULL; } return 0;