Skip to content

Commit

Permalink
back out debug code, see #683
Browse files Browse the repository at this point in the history
  • Loading branch information
hb9cwp committed Jan 25, 2016
1 parent f19c5c1 commit a1228b4
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/apps/basic/basic_apps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,10 @@ function Source:new(size)
return setmetatable({size=size, packet=p}, {__index=Source})
end

txSeqNo= 0

function Source:pull ()
for _, o in ipairs(self.output) do
for i = 1, link.nwritable(o) do
--transmit(o, packet.clone(self.packet))
local p= packet.clone(self.packet)
p.data[0]= txSeqNo %256
p.data[1]= (txSeqNo /2^8) %256
p.data[2]= (txSeqNo /2^16) %256
p.data[3]= (txSeqNo /2^24) %256
--p.data[0]= struct.pack("l", txSeqNo)
txSeqNo= txSeqNo +1
transmit(o, p)
transmit(o, packet.clone(self.packet))
end
end
end
Expand Down

0 comments on commit a1228b4

Please sign in to comment.