Skip to content

ATHandler.cpp - Bad logical comparison #9014

Closed
@TacoGrandeTX

Description

@TacoGrandeTX

Description

On a recent build off master I noticed this warning:

[Warning] app_util_platform.h@149,0:  #47-D: incompatible redefinition of macro "PACKED"  (declared at line 411 of "./mbed-os/platform/mbed_toolchain.h")
[Warning] ATHandler.cpp@962,0:  #187-D: use of "=" where "==" may have been intended

It sure looks like we intended this instead:

 } else if (c == tag[match_pos] || ((match_pos == 1) && (c == tag[--match_pos]))) {

Not familiar with cellular, so will let someone else PR this if required.

Issue request type

[ ] Question
[ ] Enhancement
[x] Bug

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions