Skip to content

Commit

Permalink
Merge pull request #44 from phdlee/version1.11
Browse files Browse the repository at this point in the history
Added Custom LPF Control
  • Loading branch information
phdlee committed Sep 22, 2018
2 parents c34e798 + 450f57a commit 37fcc59
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 16 additions & 3 deletions ubitx_20/ubitx_20.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// So I put + in the sense that it was improved one by one based on Original Firmware.
// This firmware has been gradually changed based on the original firmware created by Farhan, Jack, Jerry and others.

#define FIRMWARE_VERSION_INFO F("+v1.100")
#define FIRMWARE_VERSION_INFO F("+v1.110")
#define FIRMWARE_VERSION_NUM 0x04 //1st Complete Project : 1 (Version 1.061), 2st Project : 2, 1.08: 3, 1.09 : 4

/**
Expand Down Expand Up @@ -327,7 +327,7 @@ void setTXFilters(unsigned long freq){
#ifdef USE_CUSTOM_LPF_FILTER
freq = freq / 1000000UL;
for (byte i = 0; i < 7; i++) {
if (freq > CustFilters[i][0])
if (freq >= CustFilters[i][0])
{
char aIn = CustFilters[i][1];
digitalWrite(TX_LPF_A, aIn & 0x01);
Expand All @@ -336,7 +336,10 @@ void setTXFilters(unsigned long freq){

if (isCustomFilter_A7 == 1)
{
digitalWrite(A7, aIn & 0x08);
digitalWrite(10, aIn & 0x08);
digitalWrite(11, aIn & 0x10);
digitalWrite(12, aIn & 0x20);
digitalWrite(13, aIn & 0x40);
}
return;
}
Expand Down Expand Up @@ -1211,6 +1214,16 @@ void initPorts(){
pinMode(ANALOG_KEYER, INPUT_PULLUP);
pinMode(ANALOG_SMETER, INPUT); //by KD8CEC

#ifdef USE_CUSTOM_LPF_FILTER
if (isCustomFilter_A7)
{
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
pinMode(13, OUTPUT);
}
#endif

pinMode(CW_TONE, OUTPUT);
digitalWrite(CW_TONE, 0);

Expand Down
2 changes: 1 addition & 1 deletion ubitx_20/ubitx_lcd_nextion.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ void SendUbitxData(void)
EEPROM.get(EXTERNAL_DEVICE_OPT1, nextionDisplayOption);
SendCommandUL(CMD_DISP_OPTION2, nextionDisplayOption);

SendCommandStr(CMD_VERSION, (char *)("+v1.100")); //Version
SendCommandStr(CMD_VERSION, (char *)("+v1.110")); //Version
SendEEPromData(CMD_CALLSIGN, 0, userCallsignLength -1, 0);

/*
Expand Down

0 comments on commit 37fcc59

Please sign in to comment.