Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
hmatuschek committed Jan 23, 2025
1 parent b8ec685 commit 6d9160a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/opengd77base_codeplug.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ OpenGD77BaseCodeplug::encodeAngle(double angle) {
uint32_t sign = (angle < 0) ? 1 : 0;
uint32_t decimals = std::abs(int(angle * 10000));
uint32_t deg = decimals/10000; decimals = decimals % 10000;
return (sign << 23) | (deg <<15) | decimals;
return (sign << 23) | (deg << 15) | decimals;
}

double
Expand Down Expand Up @@ -956,6 +956,7 @@ void
OpenGD77BaseCodeplug::APRSSettingsElement::clear() {
Element::clear();
setName("");
clearFixedPosition();
}


Expand Down

0 comments on commit 6d9160a

Please sign in to comment.