| 1218 | |
| 1219 | |
| 1220 | void uh_set_ptt(int ptt) |
| 1221 | { |
| 1222 | if (!uh_ptt_in_use) |
| 1223 | { |
| 1224 | MYERROR("%10d:SetPTT but not open\n", TIME); |
| 1225 | return; |
| 1226 | } |
| 1227 | |
| 1228 | DEBUG("%10d:SET PTT = %d\n", TIME, ptt); |
| 1229 | |
| 1230 | if (ptt) |
| 1231 | { |
| 1232 | statusbyte |= 0x04; |
| 1233 | } |
| 1234 | else |
| 1235 | { |
| 1236 | statusbyte &= ~0x04; |
| 1237 | } |
| 1238 | |
| 1239 | writeFlags(); |
| 1240 | } |
| 1241 | |
| 1242 | |
| 1243 | int uh_get_ptt() |
no test coverage detected