Skip to content

Commit

Permalink
minor fixes for python3
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronfinney-openx committed Aug 30, 2019
1 parent 798c1ad commit d350e35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions mmwave/core.py
@@ -1,7 +1,7 @@
import socket
import struct
import logging
from dataformats import VALID_SOURCE_FORMATS, VALID_OUTPUT_FORMATS
from .dataformats import VALID_SOURCE_FORMATS, VALID_OUTPUT_FORMATS


class Capture(object):
Expand Down Expand Up @@ -97,7 +97,7 @@ def start(self):
self._logger.warn("No output sinks registered")

listener_socket = self._bind()

print('Bound to port 4098')
while self._kill is False:
try:
payload_size = 0
Expand All @@ -112,6 +112,7 @@ def start(self):
continue
if payload_size > 0:
seq_num, = struct.unpack('<L', raw_seq)
print('Processing message with sequence number {0}'.format(seq_num))
capture_size, = struct.unpack('<Q', raw_capture_size + b'\x00\x00')

self._logger.debug('Received message (seq/payload-size/total-capture-size):',
Expand Down
2 changes: 1 addition & 1 deletion mmwave/filewriter.py
@@ -1,7 +1,7 @@
import logging
import os
from time import time
from dataformats import VALID_OUTPUT_FORMATS
from .dataformats import VALID_OUTPUT_FORMATS


class FileWriter(object):
Expand Down

0 comments on commit d350e35

Please sign in to comment.