[RTTY] Force mask type
This commit is contained in:
parent
3c25c76b9b
commit
b8d83c8792
1 changed files with 2 additions and 1 deletions
|
@ -195,7 +195,8 @@ size_t RTTYClient::write(uint8_t* buff, size_t len) {
|
|||
size_t RTTYClient::write(uint8_t b) {
|
||||
space();
|
||||
|
||||
for(uint16_t mask = 0x01; mask <= (uint16_t)(0x01 << (uint16_t)(_dataBits - 1)); mask <<= 1) {
|
||||
uint16_t maxDataMask = 0x01 << (_dataBits - 1);
|
||||
for(uint16_t mask = 0x01; mask <= maxDataMask; mask <<= 1) {
|
||||
if(b & mask) {
|
||||
mark();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue