mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-27 16:17:31 -04:00
POCSAG TX (with fixed message for testing)
This commit is contained in:
parent
b430b1e427
commit
dc7fcbc6c3
22 changed files with 562 additions and 91 deletions
|
@ -1185,6 +1185,20 @@ SymField::SymField(
|
|||
set_focusable(true);
|
||||
}
|
||||
|
||||
uint32_t SymField::value_dec_u32() {
|
||||
uint32_t c, mul = 1;
|
||||
uint32_t v = 0;
|
||||
|
||||
if (type_ == SYMFIELD_DEC) {
|
||||
for (c = 0; c < length_; c++) {
|
||||
v += values_[(length_ - 1 - c)] * mul;
|
||||
mul *= 10;
|
||||
}
|
||||
return v;
|
||||
} else
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint64_t SymField::value_hex_u64() {
|
||||
uint32_t c;
|
||||
uint64_t v = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue