Skip to content

Commit

Permalink
Revert "define pin not connected"
Browse files Browse the repository at this point in the history
This reverts commit 3fb47ac.
  • Loading branch information
SK21 committed Jan 26, 2024
1 parent 07aab90 commit 24754ab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions Modules/Nano/RCnano/RCnano.ino
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
#include "PCA95x5_RC.h" // modified from https://github.com/hideakitai/PCA95x5

// rate control with nano
# define InoDescription "RCnano : 25-Jan-2024"
const uint16_t InoID = 25014; // change to send defaults to eeprom, ddmmy, no leading 0
# define InoDescription "RCnano : 09-Jan-2024"
const uint16_t InoID = 9014; // change to send defaults to eeprom, ddmmy, no leading 0
const uint8_t InoType = 2; // 0 - Teensy AutoSteer, 1 - Teensy Rate, 2 - Nano Rate, 3 - Nano SwitchBox, 4 - ESP Rate

#define MaxProductCount 2
#define NC 0xFF // Pin are not connected

struct ModuleConfig
{
Expand Down
2 changes: 1 addition & 1 deletion Modules/Nano/RCnano/RCnano.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
<CLanguageStandard>gnu11</CLanguageStandard>
<CAdditionalWarning />
<CppAdditionalWarning />
<ForcedIncludeFiles>$(ProjectDir)..\..\..\..\..\..\..\..\..\program files\microsoft visual studio\2022\community\common7\ide\extensions\osqpjdds.xje\Micro Platforms\default\vm-intelli-pre.h;$(ProjectDir)..\..\..\..\..\..\..\AppData\Local\Temp\VMBuilds\RCnano\nano_atmega328old\Debug\.vmintelli\e19cb606e213da4d9d21600d75253b96\vm-intelli-gcc-defines.h;$(ProjectDir)..\..\..\..\..\..\..\..\..\program files\microsoft visual studio\2022\community\common7\ide\extensions\osqpjdds.xje\Micro Platforms\default\vm-intelli-post.h;$(ProjectDir)__vm\.RCnano.vsarduino.h;%(ForcedIncludeFiles)</ForcedIncludeFiles>
<ForcedIncludeFiles>$(ProjectDir)..\..\..\..\..\..\..\..\..\program files\microsoft visual studio\2022\community\common7\ide\extensions\k5efmrr3.kil\Micro Platforms\default\vm-intelli-pre.h;$(ProjectDir)..\..\..\..\..\..\..\AppData\Local\Temp\VMBuilds\RCnano\nano_atmega328old\Debug\.vmintelli\0e5dc040bf83638b37e9b4f44d8f0d4f\vm-intelli-gcc-defines.h;$(ProjectDir)..\..\..\..\..\..\..\..\..\program files\microsoft visual studio\2022\community\common7\ide\extensions\k5efmrr3.kil\Micro Platforms\default\vm-intelli-post.h;$(ProjectDir)__vm\.RCnano.vsarduino.h;%(ForcedIncludeFiles)</ForcedIncludeFiles>
<UndefineAllPreprocessorDefinitions>true</UndefineAllPreprocessorDefinitions>
<IgnoreStandardIncludePath>true</IgnoreStandardIncludePath>
<PreprocessorDefinitions>_VMICRO_INTELLISENSE;__AVR_atmega328p__;__AVR_ATmega328P__;__AVR_ATmega328p__;F_CPU=16000000L;ARDUINO=108019;ARDUINO_AVR_NANO;ARDUINO_ARCH_AVR;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down
2 changes: 1 addition & 1 deletion Modules/Nano/RCnano/Relays.ino
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void CheckRelays()
if (j < 1) Rlys = NewLo; else Rlys = NewHi;
for (int i = 0; i < 8; i++)
{
if (MDL.RelayPins[i + j * 8] < NC) // check if relay is enabled
if (MDL.RelayPins[i + j * 8] > 1) // check if relay is enabled
{
if (bitRead(Rlys, i)) digitalWrite(MDL.RelayPins[i + j * 8], MDL.RelayOnSignal); else digitalWrite(MDL.RelayPins[i + j * 8], !MDL.RelayOnSignal);
}
Expand Down
4 changes: 2 additions & 2 deletions Modules/Nano/RCnano/__vm/Compile.vmps.xml

Large diffs are not rendered by default.

0 comments on commit 24754ab

Please sign in to comment.