diff --git a/Tidstagning/Procedure.cs b/Tidstagning/Procedure.cs index f933368..3b6d930 100644 --- a/Tidstagning/Procedure.cs +++ b/Tidstagning/Procedure.cs @@ -114,7 +114,7 @@ namespace Tidstagning Run(); return;//time already passed } - log.Write("Næste signal: " + alertTime.ToString() + " Om: " + timeToGo.ToString()); + log.Write("Næste signal: " + alertTime.ToString(@"HH\:mm\:ss") + " Om: " + timeToGo.ToString(@"hh\:mm\:ss")); timer = new System.Threading.Timer(x => { this.Alarm(); diff --git a/Tidstagning/Relay.cs b/Tidstagning/Relay.cs index c1c0808..ab6228a 100644 --- a/Tidstagning/Relay.cs +++ b/Tidstagning/Relay.cs @@ -35,12 +35,17 @@ namespace Tidstagning } + /** + * Sound the horn for a given time + * Uses a thread to postpone the off call. + */ public void Sound(int time) { Debug.WriteLine("Requesting horn for: " + time.ToString() + "ms"); On(); cooldownTimer = new System.Threading.Timer(x => { + Debug.WriteLine("Delayed off"); Off(); }, null, new TimeSpan(0, 0, time / 1000), new System.TimeSpan(0)); } diff --git a/Tidstagning/Tidstagning.csproj b/Tidstagning/Tidstagning.csproj index c895d7e..1bca86b 100644 --- a/Tidstagning/Tidstagning.csproj +++ b/Tidstagning/Tidstagning.csproj @@ -15,7 +15,7 @@ 512 false - G:\Tidstagning\ + C:\Users\JCT\Documents\Tidstagning\ true Disk false @@ -29,7 +29,7 @@ LEAX Lemvig Sejlklub false - 23 + 24 1.1.2.%2a true true @@ -64,7 +64,7 @@ Tidstagning_TemporaryKey.pfx - false + true false diff --git a/Tidstagning/Tidstagning.csproj.user b/Tidstagning/Tidstagning.csproj.user index 4664eeb..6073ca6 100644 --- a/Tidstagning/Tidstagning.csproj.user +++ b/Tidstagning/Tidstagning.csproj.user @@ -11,4 +11,7 @@ false ShowAllFiles + + false + \ No newline at end of file