Skip to content

Commit

Permalink
2018.02.01.02
Browse files Browse the repository at this point in the history
      Fixed bug with dit_buffer_off and dah_buffer_off not being initialized from eeprom settings at boot up (Thanks, YU7MW)
  • Loading branch information
k3ng committed Feb 2, 2018
1 parent 3133330 commit 6c5db40
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions k3ng_keyer/k3ng_keyer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,9 @@ Recent Update History
cat <filename>
Added serial support for ARDUINO_AVR_LEONARDO_ETH

2018.02.01.02
Fixed bug with dit_buffer_off and dah_buffer_off not being initialized from eeprom settings at boot up (Thanks, YU7MW)

This code is currently maintained for and compiled with Arduino 1.8.1. Your mileage may vary with other versions.

ATTENTION: LIBRARY FILES MUST BE PUT IN LIBRARIES DIRECTORIES AND NOT THE INO SKETCH DIRECTORY !!!!
Expand All @@ -816,7 +819,7 @@ Recent Update History

*/

#define CODE_VERSION "2018.02.01.01"
#define CODE_VERSION "2018.02.01.02"
#define eeprom_magic_number 28 // you can change this number to have the unit re-initialize EEPROM

#include <stdio.h>
Expand Down Expand Up @@ -4802,13 +4805,9 @@ int read_settings_from_eeprom() {
*p++ = EEPROM.read(ee++);
}

//if (configuration.magic_number == eeprom_magic_number) {
switch_to_tx_silent(configuration.current_tx);
config_dirty = 0;

configuration.dit_buffer_off = 0;
configuration.dah_buffer_off = 0;

return 0;
} else {
return 1;
Expand Down Expand Up @@ -5877,7 +5876,7 @@ void command_mode()
send_dit();
break;
case 1222: command_dah_to_dit_ratio_adjust(); break; // J - dah to dit ratio adjust
case 212: // K - turn dit and dah buffers on and off in Ulitmatic mode
case 212: // K - turn dit and dah buffers on and off in Ultimatic mode
if (configuration.keyer_mode == ULTIMATIC){
send_char('O',KEYER_NORMAL);
if (configuration.dit_buffer_off){
Expand Down

0 comments on commit 6c5db40

Please sign in to comment.