🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Error building latest m5dial code on vscode

    General
    1
    1
    204
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gscorrea
      last edited by

      While trying to upload the m5dial fw into my m5dial I get the following error. What am I missing here? How can I fix this in order to continue the upload?

      'Compiling .pio\build\m5dial\lib285\LittleFS\LittleFS.cpp.o
      .pio/libdeps/m5dial/M5GFX/src/lgfx/v1/platforms/esp32/Panel_EPD.cpp: In static member function 'static void lgfx::v1::Panel_EPD::task_update(lgfx::v1::Panel_EPD*)':
      .pio/libdeps/m5dial/M5GFX/src/lgfx/v1/platforms/esp32/Panel_EPD.cpp:1003:27: error: no match for 'operator!=' (operand types are 'const lgfx::v1::Panel_EPD::update_data_t' and 'lgfx::v1::Panel_EPD::update_data_t')
      if (prev_data != new_data) { break; }
      ^
      In file included from .pio/libdeps/m5dial/M5GFX/src/lgfx/v1/panel/../Panel.hpp:24,
      from .pio/libdeps/m5dial/M5GFX/src/lgfx/v1/panel/Panel_Device.hpp:20,
      from .pio/libdeps/m5dial/M5GFX/src/lgfx/v1/panel/Panel_HasBuffer.hpp:20,
      from .pio/libdeps/m5dial/M5GFX/src/lgfx/v1/platforms/esp32/Panel_EPD.hpp:28,
      from .pio/libdeps/m5dial/M5GFX/src/lgfx/v1/platforms/esp32/Panel_EPD.cpp:19:
      .pio/libdeps/m5dial/M5GFX/src/lgfx/v1/panel/../misc/colortype.hpp:700:20: note: candidate: 'bool lgfx::v1::operator!=(const lgfx::v1::raw_color_t&, const lgfx::v1::raw_color_t&)'
      LGFX_INLINE bool operator!=(const raw_color_t& lhs, const raw_color_t& rhs) { return reinterpret_cast<const uint32_t>(&lhs) != reinterpret_cast<const uint32_t>(&rhs); }
      ^~~~~~~~
      .pio/libdeps/m5dial/M5GFX/src/lgfx/v1/panel/../misc/colortype.hpp:700:20: note: no known conversion for argument 1 from 'const lgfx::v1::Panel_EPD::update_data_t' to 'const lgfx::v1::raw_color_t&'
      Compiling .pio\build\m5dial\FrameworkArduino\Esp.cpp.o
      *** [.pio\build\m5dial\lib145\M5GFX\lgfx\v1\platforms\esp32\Panel_EPD.cpp.o] Error 1
      ====================================================================================== [FAILED] Took 12.79 seconds ======================================================================================

      Environment Status Duration


      m5dial FAILED 00:00:12.788

      ===================== 1 failed, 0 succeeded in 00:00:12.788 =================================================================================

      • The terminal process "C:\Users\gscorrea.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload', '--environment', 'm5dial'" terminated with exit code: 1.
      • Terminal will be reused by tasks, press any key to close it.'
      1 Reply Last reply Reply Quote 0
      • First post
        Last post