--- libelwix/src/pelco.c 2013/01/17 10:05:35 1.1 +++ libelwix/src/pelco.c 2024/01/22 15:24:28 1.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: pelco.c,v 1.1 2013/01/17 10:05:35 misho Exp $ +* $Id: pelco.c,v 1.5 2024/01/22 15:24:28 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 +Copyright 2004 - 2024 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -46,6 +46,7 @@ SUCH DAMAGE. #include "global.h" +#ifdef PELCO_SUPPORT /* * crcPelco() - Calculate Pelco D/P CRC * @@ -54,7 +55,7 @@ SUCH DAMAGE. * return: crc for packet, if is 0 check and crc_GetErrno() == EINVAL Pelco protocol not supported */ -inline u_char +u_char crcPelco(u_char ver, u_char *pkt) { register u_char i, crc; @@ -78,3 +79,4 @@ crcPelco(u_char ver, u_char *pkt) return crc; } +#endif