From 28af5c9ac93696bdc6beca2fad96d5a53624b40d Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 2 Feb 2025 13:00:33 -0500 Subject: [PATCH] Update main.c fix frame --- main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index defb4e4a..e7f08df7 100644 --- a/main.c +++ b/main.c @@ -2314,13 +2314,13 @@ void get_tlm_fc() { // FunCube Mode telemetry generation source_bytes[0] = 0b00000001 ; // Sat Id is FunCube-EM #endif #ifdef JY_1 - source_bytes[0] = 0b11000001 ; // Sat Id is extended +// source_bytes[0] = 0b11000001 ; // Sat Id is extended + source_bytes[0] = 0b11000000 ; // Sat Id is extended // source_bytes[1] = 0x08 ; // extended Nayify - works per code loop_count++; - uint8_t frame = loop_count % 5; + uint8_t frame = loop_count / 5; printf("frame: %x\n", frame); - if (loop_count > 10) - source_bytes[0] = source_bytes[0] | frame; + source_bytes[0] = source_bytes[0] | frame; source_bytes[1] = 0x10 ; // extended JY-1 - works, no documentation int extended = 1; #endif