Skip to content

Instantly share code, notes, and snippets.

@a46554
Created March 8, 2018 02:59
Show Gist options
  • Save a46554/d3a8c844d6b3a8f23e9240a8dd1e115a to your computer and use it in GitHub Desktop.
Save a46554/d3a8c844d6b3a8f23e9240a8dd1e115a to your computer and use it in GitHub Desktop.
#define PACKET_MAX 100
unsigned int packet_count ;
/*if use this compiler will give a warring */
if(packet_count >=PACKET_MAX)
/*use this for alternative */
if(PACKET_MAX - packet_count >=0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment