Exemplo n.º 1
0
void Can232::initFunc() {
    inputString.reserve(200);
    // lw232AutoStart = true; //todo: read from eeprom
    // lw232AutoPoll = false; //todo: read from eeprom
    //  lw232TimeStamp = //read from eeprom
    //    lw232Message[0] = 'Z';    lw232Message[1] = '1'; exec();
    //if (lw232AutoStart) {
        inputString = "O\0x0D";
        stringComplete = true;
        loopFunc();
    //}
}
Exemplo n.º 2
0
void Application::RunLoop()
{
    assert(window != nullptr);
	while (!glfwWindowShouldClose(window))
    {
		lastFrameTime = thisFrameTime;
		thisFrameTime = GetTime();
		deltaTime = thisFrameTime - lastFrameTime;
        if (loopFunc != nullptr) loopFunc();
        glfwSwapBuffers(window);
		glfwPollEvents();
    }
    glfwTerminate();
}