made payload variable global

pull/33/merge
alanbjohnston 6 years ago committed by GitHub
parent 739fdacc99
commit cf522f9510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -124,7 +124,7 @@ int bitRate, mode, bufLen, rsFrames, payloads, rsFrameLen, dataLen, headerLen, s
float sleepTime;
int sampleTime = 0;
int cycle = OFF, cw_id = ON;
int vB4 = FALSE, vB5 = FALSE, ax5043 = FALSE, onLed, onLedOn, onLedOff, txLed, txLedOn, txLedOff;
int vB4 = FALSE, vB5 = FALSE, ax5043 = FALSE, onLed, onLedOn, onLedOff, txLed, txLedOn, txLedOff, payload = OFF;
float batteryThreshold = 0;
struct SensorConfig {
@ -449,7 +449,7 @@ else
if (!ax5043) // don't test if AX5043 is present
{
int uart_fd;
int payload = OFF;
payload = OFF;
if ((uart_fd = serialOpen ("/dev/ttyAMA0", 9600)) >= 0)
{

Loading…
Cancel
Save

Powered by TurnKey Linux.