Skip to content

Commit

Permalink
Update post build tasks
Browse files Browse the repository at this point in the history
Remove some unused variables
  • Loading branch information
Mark Crossley committed Aug 9, 2023
1 parent 7d5b3ab commit 7740e57
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CumulusMX/Alarm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public bool DownTriggered
}
}

public void ClearAlarm()
public new void ClearAlarm()
{
if (Latch && upTriggered && DateTime.Now > UpTriggeredTime.AddHours(LatchHours))
doUpTriggered(false);
Expand Down
16 changes: 14 additions & 2 deletions CumulusMX/CumulusMX.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,22 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>echo Starting post-build tasks
<PostBuildEvent>echo.
echo Starting post-build tasks
echo Copy Updates.txt
xcopy "$(ProjectDir)..\Updates.txt" "$(TargetDir)\Updates.txt" /D /-I /Q /Y
echo copy sqlite 32
xcopy "$(ProjectDir)\Libs\sqlite3-x86.dll" "$(TargetDir)\x86\sqlite3.dll" /D /-I /Q /Y
xcopy "$(ProjectDir)\Libs\sqlite3-x64.dll" "$(TargetDir)\x64\sqlite3.dll" /D /-I /Q /Y</PostBuildEvent>
echo copy sqlite 64
xcopy "$(ProjectDir)\Libs\sqlite3-x64.dll" "$(TargetDir)\x64\sqlite3.dll" /D /-I /Q /Y
echo.
echo Update Distribution folder
echo copy MX exe
xcopy "$(TargetPath)" "$(SolutionDir)..\CumulusMX-Dist\CumulusMX" /D /-I /Q /Y
echo copy MX config
xcopy "$(TargetDir)CumulusMX.exe.config" "$(SolutionDir)..\CumulusMX-Dist\CumulusMX" /D /-I /Q /Y

</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
2 changes: 0 additions & 2 deletions CumulusMX/DavisAirLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1374,8 +1374,6 @@ private bool GetAvailableStationIds()
private void GetAvailableSensors()
{
WlSensorList sensorsObj;
string apiKey;
string apiSecret;

var unixDateTime = Utils.ToUnixTime(DateTime.Now);

Expand Down
2 changes: 0 additions & 2 deletions CumulusMX/DavisStation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ internal class DavisStation : WeatherStation
private readonly bool isSerial;
private readonly string ipaddr;
private readonly int port;
private bool savedUseSpeedForAvgCalc;
//private int min;
private int previousMinuteDisconnect = 60;
private const int ACK = 6;
private const int NACK = 33;
Expand Down

0 comments on commit 7740e57

Please sign in to comment.