There was an error while loading. Please reload this page.
1 parent e7d121f commit 90f284cCopy full SHA for 90f284c
1 file changed
main/WebServerManager.cpp
@@ -1703,7 +1703,8 @@ esp_err_t WebServerManager::handleSaveCaptivePortalConfig(httpd_req_t *req) {
1703
}
1704
1705
cJSON *nfcReaderTypeItem = cJSON_GetObjectItem(obj, "nfcReaderType");
1706
- if (nfcReaderTypeItem && cJSON_IsNumber(nfcReaderTypeItem) && (nfcReaderTypeItem->valueint < 0 || nfcReaderTypeItem->valueint > 1)) {
+ // 0 = PN532 (SPI), 1 = PN7160, 2 = ST25R3916 (I2C).
1707
+ if (nfcReaderTypeItem && cJSON_IsNumber(nfcReaderTypeItem) && (nfcReaderTypeItem->valueint < 0 || nfcReaderTypeItem->valueint > 2)) {
1708
cJSON_Delete(obj);
1709
httpd_resp_set_status(req, "400 Bad Request");
1710
httpd_resp_set_type(req, "application/json");
0 commit comments