mirror of
https://github.com/AlexandreRouma/SDRPlusPlus
synced 2026-08-13 17:37:08 -04:00
Formatted the entire codebase and added a CI check for formatting
This commit is contained in:
parent
8644957881
commit
ea587db0cb
161 changed files with 3302 additions and 3393 deletions
|
|
@ -1,11 +1,11 @@
|
|||
#include <base40.h>
|
||||
|
||||
void decode_callsign_base40(uint64_t encoded, char *callsign) {
|
||||
void decode_callsign_base40(uint64_t encoded, char* callsign) {
|
||||
if (encoded >= 262144000000000) { // 40^9
|
||||
*callsign = 0;
|
||||
return;
|
||||
}
|
||||
char *p = callsign;
|
||||
char* p = callsign;
|
||||
for (; encoded > 0; p++) {
|
||||
*p = " ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-/."[encoded % 40];
|
||||
encoded /= 40;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue