Skip to content

Commit

Permalink
array fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed Nov 8, 2017
1 parent 2b975ed commit 6c69b0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion osx/qmk_toolbox/AppDelegate.m
Expand Up @@ -30,7 +30,7 @@ @interface AppDelegate () <NSTextViewDelegate, NSComboBoxDelegate, FlashingDeleg

@implementation AppDelegate

int devicesAvailable[4] = {0, 0, 0, 0};
int devicesAvailable[5] = {0, 0, 0, 0, 0};

- (IBAction) openButtonClick:(id) sender {
NSOpenPanel* panel = [NSOpenPanel openPanel];
Expand Down
4 changes: 2 additions & 2 deletions osx/qmk_toolbox/USB.m
Expand Up @@ -277,7 +277,7 @@ static void KiibohdDeviceAdded(void *refCon, io_iterator_t iterator) {
io_service_t object;
while ((object = IOIteratorNext(iterator))) {
[_printer print:@"Kiibohd device connected" withType:MessageType_Bootloader];
[delegate deviceConnected:STM32];
[delegate deviceConnected:Kiibohd];
}
}

Expand All @@ -288,7 +288,7 @@ static void KiibohdDeviceRemoved(void *refCon, io_iterator_t iterator) {
while ((object = IOIteratorNext(iterator)))
{
[_printer print:@"Kiibohd device disconnected" withType:MessageType_Bootloader];
[delegate deviceDisconnected:STM32];
[delegate deviceDisconnected:Kiibohd];
kr = IOObjectRelease(object);
if (kr != kIOReturnSuccess)
{
Expand Down

0 comments on commit 6c69b0b

Please sign in to comment.