mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-07 22:22:21 -04:00
Prepadded MMSI in AIS app with zeros, so it's always 9 chars long as in the specs.
This commit is contained in:
parent
30449e0adf
commit
dcb67049af
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ static float latlon_float(const int32_t normalized) {
|
||||||
static std::string mmsi(
|
static std::string mmsi(
|
||||||
const ais::MMSI& mmsi
|
const ais::MMSI& mmsi
|
||||||
) {
|
) {
|
||||||
return to_string_dec_uint(mmsi, 9);
|
return to_string_dec_uint(mmsi, 9, '0'); // MMSI is always is always 9 characters pre-padded with zeros
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string navigational_status(const unsigned int value) {
|
static std::string navigational_status(const unsigned int value) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue