Menu

Compile error on myfpesp32_311-02 with 2209 config.

Jimboh2
2024-02-21
2024-02-27
  • Jimboh2

    Jimboh2 - 2024-02-21

    Hi Robert
    I received BTT 2209 chips today and proceeded to recompile after changing config. I got an error on line 357 of driver_board.cpp:
    } else if (_boardnum == PRO2ESP32TMC2209LGTM) || (_boardnum == PRO2ESP32TMC2209XIAOC3) {

    I removed the two () like so and it compiled fine.
    } else if (_boardnum == PRO2ESP32TMC2209LGTM || _boardnum == PRO2ESP32TMC2209XIAOC3) {

    Not a very good C++ programmer so this may be incorrect but seems to work.
    Jim

     
  • brownrb

    brownrb - 2024-02-23

    Hi
    For esp32 reported issues - please use the esp32 site?
    https://sourceforge.net/projects/myfocuserpro2-esp32/
    Firmware version? was it 311-02 ?

    The line should be
    } else if (_boardnum == PRO2ESP32TMC2209LGTM || _boardnum == PRO2ESP32TMC2209XIAOC3) {

    Seems you are better at C# programming than what you think)

    Thanks for the report. I can confirm that it has already been fixed for the next release (no date has been set for this)

    Regards
    Robert

     
  • Jimboh2

    Jimboh2 - 2024-02-27

    Thanks Robert, Yes it was 311-02. Sorry I thought there was just one discussion page. I wiil use the correct one in future.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.