Update main.c add serial open

old-payload
Alan Johnston 2 months ago committed by GitHub
parent 92d9961d26
commit 9333bb5609
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2273,6 +2273,8 @@ float toAprsFormat(float input) {
int get_payload_serial(int debug_camera) { int get_payload_serial(int debug_camera) {
#ifdef OLD_STEM_PAYLOAD #ifdef OLD_STEM_PAYLOAD
if ((uart_fd = serialOpen("/dev/ttyAMA0", 115200)) >= 0) { // was 9600
// if (payload == ON) { // -55 // if (payload == ON) { // -55
if (TRUE) { // -55 if (TRUE) { // -55
STEMBoardFailure = 0; STEMBoardFailure = 0;
@ -2343,6 +2345,8 @@ int get_payload_serial(int debug_camera) {
// printf("Smin %f Smax %f \n", sensor_min[count1], sensor_max[count1]); // printf("Smin %f Smax %f \n", sensor_min[count1], sensor_max[count1]);
} }
} }
} else
printf("Can't open serial to payload");
if (payload == ON) { if (payload == ON) {
// printf("\nSTEM Payload is present!\n"); // printf("\nSTEM Payload is present!\n");

Loading…
Cancel
Save

Powered by TurnKey Linux.