Skip to content

Commit 0fe4d35

Browse files
authored
Merge pull request #2 from lucidcode/feature/2-second-delay
Power relay off again after 2 seconds
2 parents 01ba761 + c269bd7 commit 0fe4d35

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Installer/Lucid Scribe Yocto PowerRelay.vdproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
{
165165
"Name" = "8:.NET Framework"
166166
"Message" = "8:[VSDNETMSG]"
167-
"FrameworkVersion" = "8:3.5.30729 "
167+
"FrameworkVersion" = "8:3.5.30729 "
168168
"AllowLaterVersions" = "11:FALSE"
169169
"InstallUrl" = "8:http://go.microsoft.com/fwlink/?LinkId=76617"
170170
}
@@ -361,15 +361,15 @@
361361
{
362362
"Name" = "8:Microsoft Visual Studio"
363363
"ProductName" = "8:Lucid Scribe Yocto PowerRelay"
364-
"ProductCode" = "8:{8D76F4E4-A6AF-44C0-B8F1-1E481EBFFD9C}"
365-
"PackageCode" = "8:{104BFE63-3750-4531-814D-C6F684DD45CC}"
364+
"ProductCode" = "8:{C425C06F-F124-4ECA-887A-5C7D94A077B5}"
365+
"PackageCode" = "8:{87AAF9ED-D487-4F0D-85A4-8E2118335BBB}"
366366
"UpgradeCode" = "8:{F7366005-EA41-478D-BED9-08441C13A31E}"
367367
"AspNetVersion" = "8:4.0.30319.0"
368368
"RestartWWWService" = "11:FALSE"
369369
"RemovePreviousVersions" = "11:TRUE"
370370
"DetectNewerInstalledVersion" = "11:TRUE"
371371
"InstallAllUsers" = "11:TRUE"
372-
"ProductVersion" = "8:1.0.5"
372+
"ProductVersion" = "8:1.0.6"
373373
"Manufacturer" = "8:lucidcode"
374374
"ARPHELPTELEPHONE" = "8:"
375375
"ARPHELPLINK" = "8:http://www.lucidcode.com/Contact"

Yocto PowerRelay/PlugoutHandler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ public override void Trigger()
8080
return;
8181
}
8282

83-
// Turn it off in 500 ms
83+
// Turn it off in 2 seconds
8484
SwitchOffThread = new Thread(SwitchOff);
8585
SwitchOffThread.Start();
8686

87-
// And allow it to turn back on in 1 second
87+
// And allow it to turn back on in 3 seconds
8888
AllowToSwitchBackOnThread = new Thread(AllowToSwitchBackOn);
8989
AllowToSwitchBackOnThread.Start();
9090
}
@@ -97,7 +97,7 @@ public override void Trigger()
9797

9898
public void SwitchOff()
9999
{
100-
Thread.Sleep(500);
100+
Thread.Sleep(2000);
101101
On = false;
102102
SwitchingOff = true;
103103
Trigger();
@@ -108,7 +108,7 @@ public void SwitchOff()
108108

109109
public void AllowToSwitchBackOn()
110110
{
111-
Thread.Sleep(1000);
111+
Thread.Sleep(3000);
112112
AllowToSwitchOn = true;
113113
}
114114

Yocto PowerRelay/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.5.0")]
36-
[assembly: AssemblyFileVersion("1.0.5.0")]
35+
[assembly: AssemblyVersion("1.0.6.0")]
36+
[assembly: AssemblyFileVersion("1.0.6.0")]

0 commit comments

Comments
 (0)