Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
df4c0c7dfThis file is pinned to the selected release. Download the original to open it in your design tool.
#include "begindrawingphase.h"
BeginDrawingPhase::BeginDrawingPhase(PhaseManager* manager, Runner* runner, AsyncWebServer* server) {
this->manager = manager;
this->runner = runner;
this->server = server;
}
void BeginDrawingPhase::run(AsyncWebServerRequest *request) {
runner->start();
request->send(200, "text/plain", "OK");
server->end();
}
void BeginDrawingPhase::doneWithPhase(AsyncWebServerRequest *request) {
manager->reset();
manager->respondWithState(request);
}
const char* BeginDrawingPhase::getName() {
return "BeginDrawing";
}