Skip to content

Call gslc_DrvDrawTxt with the parameter gslc_tsFont *pFont = NULL #578

@goddade

Description

@goddade

Describe the bug

Please describe what you observe on the display or any error messages

gslc_DrvDrawTxt(pGui,5,5,NULL,(char*)"ERROR: InitTouch",

gslc_DrvDrawTxt does not handle NULL:
uint16_t nTxtScale = pFont->nSize;

Device hardware

  • MCU: ??? ATmega2560, ESP32, etc.
  • Display with link: ??? Adafruit ILI9341 2.8" resistive (https://www.adafruit.com/product/1651)
  • GUIslice config selected: ??? ard-adagfx-ili9341-stmpe610

Checklist to try first

Most display/touch issues can be identified by working through the steps in the Configuring GUIslice guide.

Please confirm whether:

  • Display works correctly with standalone display driver library examples (eg. TFT_eSPI graphicstest, Adafruit graphicstest, etc.) without GUIslice: ???
  • Touch works correctly with standalone touch library examples without GUIslice: ???

Expected behavior

A description of what you expected to happen

Initialization messages

Please copy any startup messages / errors reported to the serial monitor window here. You can enable all error messages by setting DEBUG_ERR 2 in the GUIslice config file.

Additional info

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions