fix: remove unused code

adc2uv is not used in boardver_adc.c.
a FIXME comment says it should be shared with mode_cardemu.c.
the exact same code is already available in mode_cardemu.c
This commit is contained in:
Kevin Redon 2018-05-21 17:51:14 +02:00
parent cb6e20596e
commit e4cd52c2e3
1 changed files with 0 additions and 8 deletions

View File

@ -1,14 +1,6 @@
#include "board.h"
#include "boardver_adc.h"
/* FIXME: share this with mode_cardemu.c */
#define UV_PER_LSB ((3300 * 1000) / 4096)
static uint32_t adc2uv(uint16_t adc)
{
uint32_t uv = (uint32_t) adc * UV_PER_LSB;
return uv;
}
/***********************************************************************
* ADC for board version detection
***********************************************************************/