Browse Source

Fixed two bugs in the app. Display Arduino serial port and stop animations after selecting a static color.

Thomas Buck 9 years ago
parent
commit
9bb7fbef68
3 changed files with 8 additions and 2 deletions
  1. 6
    0
      CaseLights/AppDelegate.m
  2. 1
    1
      CaseLights/Info.plist
  3. 1
    1
      CaseLights/Serial.m

+ 6
- 0
CaseLights/AppDelegate.m View File

@@ -583,6 +583,12 @@
583 583
             if ([sender.title isEqualToString:key]) {
584 584
                 found = YES;
585 585
                 
586
+                // Stop previous timer setting
587
+                if (animation != nil) {
588
+                    [animation invalidate];
589
+                    animation = nil;
590
+                }
591
+                
586 592
                 NSColor *color = [staticColors valueForKey:key];
587 593
                 unsigned char red = [color redComponent] * 255;
588 594
                 unsigned char green = [color greenComponent] * 255;

+ 1
- 1
CaseLights/Info.plist View File

@@ -21,7 +21,7 @@
21 21
 	<key>CFBundleSignature</key>
22 22
 	<string>????</string>
23 23
 	<key>CFBundleVersion</key>
24
-	<string>104</string>
24
+	<string>106</string>
25 25
 	<key>LSApplicationCategoryType</key>
26 26
 	<string>public.app-category.utilities</string>
27 27
 	<key>LSMinimumSystemVersion</key>

+ 1
- 1
CaseLights/Serial.m View File

@@ -216,7 +216,7 @@
216 216
     } else {
217 217
         CFDictionarySetValue(classesToMatch,
218 218
                              CFSTR(kIOSerialBSDTypeKey),
219
-                             CFSTR(kIOSerialBSDRS232Type));
219
+                             CFSTR(kIOSerialBSDAllTypes));
220 220
         
221 221
         // Each serial device object has a property with key
222 222
         // kIOSerialBSDTypeKey and a value that is one of

Loading…
Cancel
Save