Unify full firmware profiles and add dual USB logging
This commit is contained in:
1 parent
9ed9e9d746
commit
5362d36ac7
56 files changed
+1652
-361
No files matched your search
@@ -442,11 +442,12 @@ bool ST7735Display::begin() {
|
||||
// alloc offscreen canvas
|
||||
sprite = new TFT_eSprite(&lcd);
|
||||
if (!sprite) {
|
||||
Serial.println("ST7735Display: failed to alloc canvas");
|
||||
mesh::usbLoggingPort().println("ST7735Display: failed to alloc canvas");
|
||||
return false;
|
||||
}
|
||||
if (!sprite->createSprite(160, 80)) {
|
||||
Serial.println("ST7735Display: failed to alloc canvas pixels");
|
||||
mesh::usbLoggingPort().println(
|
||||
"ST7735Display: failed to alloc canvas pixels");
|
||||
delete sprite;
|
||||
sprite = NULL;
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user