Skip to content

Commit fb8dc9d

Browse files
authored
Merge pull request #825 from pennam/gsm_debug_warnings
GSMDebug: fix warning case value not in enumerated type
2 parents f0f0252 + fcdade6 commit fb8dc9d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libraries/GSM/src/GSMDebug.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,16 @@ const char * arduino::GSMClass::getRegistrationStateString(const mbed::CellularN
188188

189189
void arduino::GSMClass::onStatusChange(nsapi_event_t ev, intptr_t in) {
190190

191-
if(ev == CellularStateRetryEvent) {
191+
cellular_event_status event = (cellular_event_status)ev;
192+
193+
if(event == CellularStateRetryEvent) {
192194
feedWatchdog();
193195
}
194196

195197
#if GSM_DEBUG_ENABLE
196198
const cell_callback_data_t *data = (const cell_callback_data_t *)in;
197199

198-
switch(ev)
200+
switch(event)
199201
{
200202
case CellularDeviceReady:
201203
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy