diff --git a/master/master/lib/afsk.c b/master/master/lib/afsk.c --- a/master/master/lib/afsk.c +++ b/master/master/lib/afsk.c @@ -97,11 +97,10 @@ void afsk_setup() { sei(); } - void afsk_test() { - uint8_t flap[32] = "somethingawesomesomethingawesome"; - afsk_send(flap, 32); + uint8_t flap[26] = {"abcdefghijklmnopqrstuvwxyz"}; + afsk_send(flap, sizeof(flap)*8); afsk_start(); while(afsk_busy()); _delay_ms(500); @@ -116,6 +115,7 @@ void afsk_test() { #define BAUD_RATE 1200 //#define SAMPLES_PER_BAUD PLAYBACK_RATE / BAUD_RATE // = 36 +//#define SAMPLES_PER_BAUD 36 #define SAMPLES_PER_BAUD 36 @@ -205,7 +205,7 @@ ISR(TIMER2_OVF_vect) if(++current_sample_in_baud == SAMPLES_PER_BAUD) { // sounds fun when this is commented out... but why??!?! - //current_sample_in_baud = 0; + current_sample_in_baud = 0; packet_pos++; } @@ -230,7 +230,7 @@ void afsk_timer_stop() { // Resting duty cycle // Output 0v (could be 255/2, which is 0v after coupling... doesn't really matter) - OCR2B = 0x00; + OCR2B = 0x80; // Disable playback interrupt TIMSK2 &= ~_BV(TOIE2);