This commit is contained in:
richonguzman 2024-05-17 18:47:45 -04:00
parent 8910ab9e9d
commit 31bf59cd2f
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ namespace AX25_Utils {
std::string intToBinaryString(uint8_t value, uint8_t bitLength) {
std::string result = "";
//result.reserve(bitLength);
for (int i = bitLength - 1; i >= 0; i--) {
result += ((value >> i) & 1) ? '1' : '0';
}