mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
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:
@@ -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
|
||||
***********************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user