Skip to content

Commit 7b53254

Browse files
committed
fix maximum data size for netduino2plus
2 parents 597f77a + 1189a35 commit 7b53254

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

STM32F1/libraries/Adafruit_SSD1306/Adafruit_SSD1306_STM32.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ HardWire HWIRE(2,I2C_FAST_MODE); // I2c2
2929
#include "Adafruit_GFX.h"
3030
#include "Adafruit_SSD1306_STM32.h"
3131

32+
#ifndef swap
33+
#define swap(a, b) { int16_t t = a; a = b; b = t; }
34+
#endif
35+
3236
// the memory buffer for the LCD
3337

3438
static uint8_t buffer[SSD1306_LCDHEIGHT * SSD1306_LCDWIDTH / 8] = {

STM32F4/boards.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,8 @@ netduino2plus.upload.protocol=maple_dfu
115115

116116
#netduino2plus.upload.use_1200bps_touch=false
117117
netduino2plus.upload.file_type=bin
118-
netduino2plus.upload.ram.maximum_size=196608
119-
netduino2plus.upload.flash.maximum_size=1048576
120118
netduino2plus.upload.maximum_size=1048576
119+
netduino2plus.upload.maximum_data_size=131072
121120

122121
netduino2plus.upload.usbID=0483:df11
123122
netduino2plus.upload.altID=0

0 commit comments

Comments
 (0)