Commits

Trammell Hudson committed 6a96ee6

Walk through the message string

Comments (0)

Files changed (1)

 	if (!bit)
 		phase = (phase + 64) & 127;
 
+	// 833 Hz / 31.25 Hz == 27 cycles per bit
 	const uint16_t bit_width = 27 * 128;
 
 	for (uint16_t i = 0 ; i < bit_width ; i++)
 	{
+#if 1
 		const uint8_t s = sin_table[phase++ & 127];
+#else
+		const uint8_t s = bit ? 0x3F : 0x00;
+#endif
 
 		uint8_t spin = 32;
 		while(spin--)
 	uint8_t i = 0;
 	while (1)
 	{
-		unsigned char c = msg[i];
+		unsigned char c = msg[i++];
 		if (c == '\0')
 		{
 			i = 0;