print in handler

pull/202/head
alanbjohnston 3 years ago committed by GitHub
parent cdb31c1ac9
commit f58966f384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1313,7 +1313,7 @@ void get_tlm_fox() {
// Serial.print(" "); // Serial.print(" ");
/// if (mode == FSK) { /// if (mode == FSK) {
/// phase = ((data != 0) * 2) - 1; /// phase = ((data != 0) * 2) - 1;
Serial.printf("Sending a %d\n", phase); // Serial.printf("Sending a %d\n", phase);
/// } else { /// } else {
if (data == 0) { if (data == 0) {
phase *= -1; phase *= -1;
@ -1345,7 +1345,7 @@ void get_tlm_fox() {
void write_wave(int i, byte *buffer) void write_wave(int i, byte *buffer)
{ {
buffer[ctr++] = (byte)(phase == 1); buffer[ctr++] = (byte)(phase == 1);
Serial.printf("buffer is %d \n", buffer[ctr - 1]); // Serial.printf("buffer is %d \n", buffer[ctr - 1]);
if (ctr > bufLen) { if (ctr > bufLen) {
ctr = ctr - bufLen; ctr = ctr - bufLen;
if (debug_mode) { if (debug_mode) {
@ -3423,9 +3423,9 @@ bool TimerHandler0(struct repeating_timer *t) {
// digitalWrite(STEM_LED_GREEN, !green_led_counter++); // digitalWrite(STEM_LED_GREEN, !green_led_counter++);
if ((mode == BPSK) || (mode == FSK)) { // only do this if BPSK mode. Should turn off timer interrupt when not BPSK in future if ((mode == BPSK) || (mode == FSK)) { // only do this if BPSK mode. Should turn off timer interrupt when not BPSK in future
// Serial.print("l1 "); Serial.print("l1 ");
// Serial.print(wav_position); Serial.print(wav_position);
// Serial.print(" "); Serial.print(" ");
while ((micros() - micro_timer2) < delay_time) { } while ((micros() - micro_timer2) < delay_time) { }
if (mode == BPSK) if (mode == BPSK)
busy_wait_at_least_cycles(51); // 300 ns busy_wait_at_least_cycles(51); // 300 ns

Loading…
Cancel
Save

Powered by TurnKey Linux.