Skip to content

Commit e9ae7b7

Browse files
committed
Gated a few more CC3K Printers
Binary sketch size: 19034 bytes (used 59% of a 32256 byte maximum) (2.58 secs) -- buildtest - starting size prior to gating CC3KPrinter Binary sketch size: 21790 bytes (used 68% of a 32256 byte maximum) (2.60 secs) -- chatserver - starting size prior to gating CC3KPrinter Binary sketch size: 20726 bytes (used 64% of a 32256 byte maximum) (2.54 secs) -- webclient - starting size prior to gating CC3KPrinter Binary sketch size: 17444 bytes (used 54% of a 32256 byte maximum) (2.59 secs) -- buildtest - final size after to gating CC3KPrinter Binary sketch size: 20026 bytes (used 62% of a 32256 byte maximum) (2.48 secs) -- chatserver - final size after to gating CC3KPrinter Binary sketch size: 19076 bytes (used 59% of a 32256 byte maximum) (2.56 secs) -- webclient - final size after to gating CC3KPrinter
1 parent 3ee95a4 commit e9ae7b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Adafruit_CC3000.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ uint8_t pingReportnum;
100100
netapp_pingreport_args_t pingReport;
101101

102102
#define CC3000_SUCCESS (0)
103-
#define CHECK_SUCCESS(func,Notify,errorCode) {if ((func) != CC3000_SUCCESS) { if (CC3KPrinter != 0) CC3KPrinter->println(F(Notify)); return errorCode;}}
103+
#define CHECK_SUCCESS(func,Notify,errorCode) {if ((func) != CC3000_SUCCESS) { CHECK_PRINTER CC3KPrinter->println(F(Notify)); return errorCode;}}
104104

105105
#define MAXSSID (32)
106106
#define MAXLENGTHKEY (32) /* Cleared for 32 bytes by TI engineering 29/08/13 */

Adafruit_CC3000_Server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#include "utility/socket.h"
1818

19-
#define CC3K_PRINTLN_F(text) { if(CC3KPrinter != NULL) { CC3KPrinter->println(F(text)); } }
19+
#define CC3K_PRINTLN_F(text) CHECK_PRINTER { if(CC3KPrinter != NULL) { CC3KPrinter->println(F(text)); } }
2020

2121
#define HANDLE_NULL(client, value) { if (client == NULL) return value; }
2222

0 commit comments

Comments
 (0)