diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2017-10-22 14:39:25 +0300 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2017-10-22 14:39:25 +0300 |
commit | 1d3f0ab16ab6dc0e315226f6203cf8facd2e7b42 (patch) | |
tree | 9c3ec61db395f6b03813051fb07e5a46affd7fcd | |
parent | 33b596fec70b3f1152cc84cf9aeafbfeca0b046e (diff) | |
download | sdl_ios-1d3f0ab16ab6dc0e315226f6203cf8facd2e7b42.tar.gz |
Fix SDLLogBytes not being defined in release causing a compile error
-rw-r--r-- | SmartDeviceLink/SDLIAPTransport.m | 4 | ||||
-rw-r--r-- | SmartDeviceLink/SDLLogMacros.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLIAPTransport.m b/SmartDeviceLink/SDLIAPTransport.m index a0474f32e..aec2ba7b4 100644 --- a/SmartDeviceLink/SDLIAPTransport.m +++ b/SmartDeviceLink/SDLIAPTransport.m @@ -7,11 +7,11 @@ #import "EAAccessory+SDLProtocols.h" #import "EAAccessoryManager+SDLProtocols.h" -#import "SDLLogMacros.h" #import "SDLGlobals.h" #import "SDLIAPSession.h" #import "SDLIAPTransport.h" #import "SDLIAPTransport.h" +#import "SDLLogMacros.h" #import "SDLStreamDelegate.h" #import "SDLTimer.h" #import <CommonCrypto/CommonDigest.h> @@ -531,7 +531,7 @@ int const ProtocolIndexTimeoutSeconds = 20; NSInteger bytesRead = [istream read:buf maxLength:[[SDLGlobals sharedGlobals] mtuSizeForServiceType:SDLServiceTypeRPC]]; NSData *dataIn = [NSData dataWithBytes:buf length:bytesRead]; SDLLogBytes(dataIn, SDLLogBytesDirectionReceive); - + if (bytesRead > 0) { [strongSelf.delegate onDataReceived:dataIn]; } else { diff --git a/SmartDeviceLink/SDLLogMacros.h b/SmartDeviceLink/SDLLogMacros.h index 691210b19..f51386e10 100644 --- a/SmartDeviceLink/SDLLogMacros.h +++ b/SmartDeviceLink/SDLLogMacros.h @@ -27,6 +27,7 @@ #else +#define SDLLogBytes(bytes, transmissionDirection) #define SDLLogV(msg, ...) #define SDLLogD(msg, ...) |