Fix ESP32 GPIO led no.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2024-09-02 17:28:18 +02:00
parent 9f65a2cfa0
commit 20099b61e8
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -475,11 +475,10 @@ int main(void) {
#endif
#endif
//ccid_prepare_receive(&ccid);
#ifdef ESP_PLATFORM
uint8_t gpio = GPIO_NUM_48;
if (file_has_data(ef_phy)) {
if (file_read_uint8_offset(ef_phy, PHY_OPTS + 1) & PHY_OPT_GPIO) {
if (file_read_uint8_offset(ef_phy, PHY_OPTS) & PHY_OPT_GPIO) {
gpio = file_get_data(ef_phy)[PHY_LED_GPIO];
}
}