mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-15 18:21:07 +00:00
Move the bitbang prerequisite checks out from
main() into their own bitbang_check_prerequisites(). git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@626 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -200,6 +200,8 @@ static int serbb_open(PROGRAMMER *pgm, char *port)
|
||||
struct termios mode;
|
||||
int flags;
|
||||
|
||||
bitbang_check_prerequisites(pgm);
|
||||
|
||||
/* adapted from uisp code */
|
||||
|
||||
pgm->fd = open(port, O_RDWR | O_NOCTTY | O_NONBLOCK);
|
||||
|
||||
Reference in New Issue
Block a user