mirror of https://gerrit.osmocom.org/simtrace2
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:
parent
cb6e20596e
commit
e4cd52c2e3
|
@ -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
|
||||
***********************************************************************/
|
||||
|
|
Loading…
Reference in New Issue