Set or clear one segment bit in the LCDVector.
| 161 | |
| 162 | // Set or clear one segment bit in the LCDVector. |
| 163 | static void tmate2Seg(uint8_t* v, SegEntry s, bool on) |
| 164 | { |
| 165 | if (on) v[s.byte] |= s.mask; |
| 166 | else v[s.byte] &= static_cast<uint8_t>(~s.mask); |
| 167 | } |
| 168 | |
| 169 | // Convert dBm to S-meter bargraph bar count (0-15). |
| 170 | // S1(-121 dBm)=1, S9(-73 dBm)=9; above S9: +10 dB per bar up to S9+60 dB(=15). |
no outgoing calls
no test coverage detected