Close



Results 1 to 3 of 3

Threaded View

  1. #3
    Right now the function looks like:
    Code:
    void st_init(){
    ...
    }
    After diligently looking through the middle of the sequence I can not find another function definition I even made sure the { at the start lined up with the } at the end
    There were only a few #ifdef that I could delete, mostly the dual_z_stepper.

    After some more testing of the error I found that it wont happen if I comment out the
    //void st_init()
    but it would just occur at a later void function definition.
    For instance it is now giving me the same error here:
    Code:
    void finishAndDisableSteppers()
    {
      st_synchronize();
      disable_x();
      disable_y();
      disable_z();
      disable_e0();
      disable_e1();
      disable_e2();
    }
    Here is the full error

    stepper.cpp: In function 'void __vector_17()':
    stepper.cpp:831: error: a function-definition is not allowed here before '{' token
    {
    ^
    stepper.cpp:1372: error: expected '}' at end of input
    }
    ^
    a function-definition is not allowed here before '{' token

    Edit: After about an hour of checking everything I found the error.
    Last edited by WinstonPHz; 01-16-2016 at 08:33 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •