mirror of
https://github.com/meshtastic/protobufs.git
synced 2026-04-20 22:13:55 +00:00
clean up channel_num comment
This commit is contained in:
parent
7cf4d8a9b3
commit
d3375fe599
1 changed files with 1 additions and 9 deletions
10
config.proto
10
config.proto
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue