Commit Diff


commit - 2986539c51e164fe06f19fdd2e93313f0c3ca569
commit + cf35082506530e281361b2bb5085e84a6373c8ac
blob - 4558bbcd954b41fd80903aca576e92ec4238579d
blob + ff0ea7d4e403249774217b3a1a91d861b2c0d772
--- Morse.cpp	
+++ Morse.cpp	
@@ -283,7 +283,7 @@ Morse::dac_watchdog(void)
 	if (dac_inited) {
 		dac_handle_chars();
 		if (dac_on) {
-			dac_i +=  dac_max / (clk_freq / (dac_freq * 3600));
+			dac_i +=  dac_max / 50; // ~ 660Hz
 			if (dac_i >= dac_max)
 				dac_i = 0.0;
 			volume = (MAX_RAD * (dac_volume / 1000.0));
blob - 61541e081f486bb4ee7461394b59a63c8867246f
blob + 2c689220dd6e95ff05605aff350c671df17848b2
--- Morse.h	
+++ Morse.h	
@@ -25,8 +25,6 @@ Morse
 	// we've no rx code yet
 	public:
 		float dac_volume = 100;
-		float dac_freq = 1000;
-		uint64_t clk_freq = getApbFrequency();
 
 		Morse(uint8_t type, uint8_t the_pin);
 		Morse(uint8_t type, uint8_t the_pin, uint8_t the_wpm);