Remove unused function in ar7030p_utils.c

pull/799/head
Mike Black W9MDB 2021-09-11 05:13:40 -05:00
rodzic 04b0e6e40c
commit d39daab0df
1 zmienionych plików z 0 dodań i 33 usunięć

Wyświetl plik

@ -947,39 +947,6 @@ int bcd2Int(const unsigned char bcd)
return (rc);
}
#ifdef XXREMOVEDXX
// this function is not referenced anywhere
/*
* \brief Convert int into 2 digit BCD number
*
* \param int Integer value (0-99)
*
* \return 2 digit BCD equivalent (0-99), 0xff on failure
*/
unsigned char int2BCD(const unsigned int val)
{
unsigned char rc = (unsigned char) 0xff;
unsigned char tens = (unsigned char)(val / 10);
unsigned char ones = (unsigned char)(val % 10);
if ((unsigned char) 10 > tens)
{
rc = (tens << 4);
if ((unsigned char) 10 > ones)
{
rc = rc | ones;
}
else
{
rc = (unsigned char) 0xff;
}
}
return (rc);
}
#endif
/*
* \brief Convert raw AGC value to calibrated level in dBm
*