mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-23 05:01:26 +00:00
POCSAG TX (with fixed message for testing)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user