Skip to content

Commit

Permalink
1.0.1, don't be so verbose about MNP
Browse files Browse the repository at this point in the history
  • Loading branch information
zydeco committed May 18, 2011
1 parent b2ebeb0 commit accf856
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Classes/MNPPipe.m
Expand Up @@ -24,8 +24,8 @@
#include <termios.h>
#include <fcntl.h>

#define MNPLog(__fmt, ...) NSLog(__fmt, ## __VA_ARGS__)
//#define MNPLog(__fmt, ...)
//#define MNPLog(__fmt, ...) NSLog(__fmt, ## __VA_ARGS__)
#define MNPLog(__fmt, ...)

NSString * MNPPipeConnectionEstablishedNotification = @"MNPPipeConnectionEstablished";
NSString * MNPPipeConnectionLostNotification = @"MNPPipeConnectionLost";
Expand Down Expand Up @@ -107,7 +107,7 @@ - (id)initWithSerialPort:(NSString*)path speed:(NSUInteger)serialSpeed {
int fd = open([path fileSystemRepresentation], O_RDWR | O_NOCTTY | O_NDELAY);
if (fd == -1) fd = open([[@"/dev" stringByAppendingPathComponent:path] fileSystemRepresentation], O_RDWR | O_NOCTTY | O_NDELAY);
if (fd == -1) {
NSLog(@"[MNPPipe initWithSerialPort:\"%@\" speed:%lu]: %s", path, serialSpeed, strerror(errno));
MNPLog(@"[MNPPipe initWithSerialPort:\"%@\" speed:%lu]: %s", path, serialSpeed, strerror(errno));
[self release];
return nil;
}
Expand Down Expand Up @@ -318,7 +318,7 @@ - (int)_sendLinkAcknowledge:(uint8_t)num {
}

- (int)_writeFrame:(const uint8_t *)data length:(size_t)size {
NSLog(@"MNP Send: %@", [NSData dataWithBytes:data length:size]);
MNPLog(@"MNP Send: %@", [NSData dataWithBytes:data length:size]);
int fd = [fh fileDescriptor];
uint16_t crc = 0;
// TODO error checking on write
Expand Down
2 changes: 1 addition & 1 deletion Info.plist
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>nKbd</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<string>1.0.1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSMainNibFile</key>
Expand Down

0 comments on commit accf856

Please sign in to comment.