Skip to content

Commit 6bc5f5e

Browse files
committed
Fix count vs len on a list (#736 (comment))
1 parent 6ebddb6 commit 6bc5f5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

meshtastic/mesh_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def getNestedValue(node_dict: Dict[str, Any], key_path: str) -> Any:
292292
return None
293293
return value
294294

295-
if showFields is None or showFields.count == 0:
295+
if showFields is None or len(showFields) == 0:
296296
# The default set of fields to show (e.g., the status quo)
297297
showFields = ["N", "user.longName", "user.id", "user.shortName", "user.hwModel", "user.publicKey",
298298
"user.role", "position.latitude", "position.longitude", "position.altitude",

0 commit comments

Comments
 (0)