Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ponty committed Feb 8, 2013
1 parent 4cfaa9f commit fc16840
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pysimavr/sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ArduinoSim(object):
'''arduino code builder and simulator for serial testing'''
def __init__(self,
snippet=None,
mcu='atmega328',
mcu='atmega328p',
f_cpu=16000000,
extra_lib=None,
timespan=0.01,
Expand Down
1 change: 1 addition & 0 deletions pysimavr/swig/parts/ac_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "sim_avr.h"
#include "ac_input.h"
#include "stdio.h"
#include "sim_time.h"

static avr_cycle_count_t
switch_auto(struct avr_t * avr,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_udp.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_udp():
//delay(100);
}
'''
x = ArduinoSim(snippet=snippet, timespan=2.5).get_serial()
x = ArduinoSim(snippet=snippet, timespan=10).get_serial()
print x
lines = x.splitlines()
eq_(len(lines), 100)
Expand Down

0 comments on commit fc16840

Please sign in to comment.