diff options
Diffstat (limited to 'driver/nfc/ctn730.c')
-rw-r--r-- | driver/nfc/ctn730.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/driver/nfc/ctn730.c b/driver/nfc/ctn730.c index e72f4459ad..c19b440824 100644 --- a/driver/nfc/ctn730.c +++ b/driver/nfc/ctn730.c @@ -4,9 +4,9 @@ */ #include "chipset.h" -#include "ctn730.h" #include "common.h" #include "console.h" +#include "ctn730.h" #include "gpio.h" #include "i2c.h" #include "peripheral_charger.h" @@ -66,6 +66,8 @@ static const char *_text_instruction(uint8_t instruction) return "CHARGING_STATE"; case WLC_CHG_CTRL_CHARGING_INFO: return "CHARGING_INFO"; + case WLC_CHG_CTRL_OPTIONAL_NDEF: + return "OPTIONAL_NDEF"; default: return "UNDEF"; } @@ -484,6 +486,10 @@ static int _process_payload_event(struct pchg *ctx, struct ctn730_msg *res) ctx->event = PCHG_EVENT_CHARGE_UPDATE; ctx->battery_percent = buf[0]; break; + case WLC_CHG_CTRL_OPTIONAL_NDEF: + if (len == 0) + return EC_ERROR_INVAL; + break; default: CPRINTS("Received unknown event (%d)", res->instruction); break; |