Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfb8dc9d

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

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
voidarduino::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
constcell_callback_data_t *data = (constcell_callback_data_t *)in;
197199

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp