Update ESP170.cpp (#989)

Fix minor issues

Signed-off-by: E2D <engineer2designer@gmail.com>
This commit is contained in:
E2D 2024-01-04 17:01:42 +08:00 committed by GitHub
parent 0057961497
commit 4a23898289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ void ESP3DCommands::ESP170(int cmd_params_pos, ESP3DMessage* msg) {
bool json = hasTag(msg, cmd_params_pos, "json");
String tmpstr;
#if AUTHENTICATION_FEATURE
#ifdef AUTHENTICATION_FEATURE
if (msg->authentication_level == ESP3DAuthenticationLevel::guest) {
dispatchAuthenticationError(msg, COMMAND_ID, json);
return;