Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
[sniffer] wait a bit after reset command (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
chshu authored and jwhui committed Sep 12, 2017
1 parent 6f659d2 commit cfdc6d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sniffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

import sys
import optparse
import time
from datetime import datetime

import spinel.util as util
Expand Down Expand Up @@ -79,6 +80,7 @@ def sniffer_init(wpan_api, options):

sys.stderr.write("Initializing sniffer...\n")
wpan_api.cmd_send(SPINEL.CMD_RESET)
time.sleep(1)

result = wpan_api.prop_set_value(SPINEL.PROP_PHY_ENABLED, 1)

Expand Down

0 comments on commit cfdc6d9

Please sign in to comment.