MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / uh_set_ptt

Function uh_set_ptt

src/microham.c:1220–1240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1218
1219
1220void 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
1243int uh_get_ptt()

Callers 1

ser_set_dtrFunction · 0.85

Calls 1

writeFlagsFunction · 0.85

Tested by

no test coverage detected