turning off tx LED when low battery shutdown

pull/49/head
alanbjohnston 5 years ago committed by GitHub
parent 8a2444fd29
commit 04bef68b47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -554,7 +554,7 @@ while (loop-- != 0)
if ((batteryVoltage > 0) && (batteryVoltage < batteryThreshold))
{
fprintf(stderr,"Battery voltage too low: %f V - shutting down!\n", batteryVoltage);
digitalWrite (txLed, txLedOff);
digitalWrite (onLed, onLedOff);
sleep(1);
digitalWrite (onLed, onLedOn);

Loading…
Cancel
Save

Powered by TurnKey Linux.