Skip to content

Commit

Permalink
Revert "add command battery"
Browse files Browse the repository at this point in the history
This reverts commit be45653.
  • Loading branch information
edy555 committed Sep 14, 2019
1 parent 118f3b3 commit c388832
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
13 changes: 0 additions & 13 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1603,18 +1603,6 @@ static void cmd_touchtest(BaseSequentialStream *chp, int argc, char *argv[])

}

static void cmd_battery(BaseSequentialStream *chp, int argc, char *argv[])
{
(void)argc;
(void)argv;

adc_stop(ADC1);
int v = adc_vbat_read(ADC1);
chprintf(chp, "%d\r\n", v);
touch_start_watchdog();
}


static void cmd_frequencies(BaseSequentialStream *chp, int argc, char *argv[])
{
int i;
Expand Down Expand Up @@ -1797,7 +1785,6 @@ static const ShellCommand commands[] =
{ "test", cmd_test },
{ "touchcal", cmd_touchcal },
{ "touchtest", cmd_touchtest },
{ "battery", cmd_battery },
{ "pause", cmd_pause },
{ "resume", cmd_resume },
{ "cal", cmd_cal },
Expand Down
2 changes: 0 additions & 2 deletions nanovna.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,6 @@ int config_recall(void);

void clear_all_config_prop_data(void);

int16_t adc_vbat_read(ADC_TypeDef *adc);

/*
* ui.c
*/
Expand Down

0 comments on commit c388832

Please sign in to comment.