clean up channel_num comment

This commit is contained in:
andrekir 2022-09-30 22:19:22 -03:00 committed by Sacha Weatherstone
parent 7cf4d8a9b3
commit d3375fe599

View file

@ -575,19 +575,11 @@ message Config {
/*
* This is controlling the actual hardware frequency the radio is transmitting on.
* Most users should never need to be exposed to this field/concept.
* A channel number between 1 and N (whatever the max is in the current region).
* A channel number between 1 and NUM_CHANNELS (whatever the max is in the current region).
* If ZERO then the rule is "use the old channel name hash based
* algorithm to derive the channel number")
* If using the hash algorithm the channel number will be: hash(channel_name) %
* NUM_CHANNELS (Where num channels depends on the regulatory region).
* hash a string into an integer - djb2 by Dan Bernstein. -
* http://www.cse.yorku.ca/~oz/hash.html
* unsigned long hash(char *str) {
* unsigned long hash = 5381; int c;
* while ((c = *str++) != 0)
* hash = ((hash << 5) + hash) + (unsigned char) c;
* return hash;
* }
*/
uint32 channel_num = 11;