Firmware updater plugin problem

What is the problem?
ERROR: Flashing failed - Timeout communication with programmer

What did you already try to solve it?
I have tried every combination described in this link. I was to sure to have everything set up.

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, octoprint.log, serial.log or output on terminal tab, ...)

Octopi 0.16
Octoprint 1.3.10
Raspberry Pi Zero W
Serial port: /dev/ttyUSB0
Flash method: avrdude
AVR MCU: ATMega 1280p and also tryied with ATMega 1280
Path to avrdude: /usr/bin/avrdude (it is valid)
AVR programmer type: wiring
AVR baud rate: 250000

The problem was that I've should set to AVR programmer type arduino option and not wiring. In my ase the AVR MCU was ATmega1284p

I had the same problem and it took me a while to find this thread, but this solved it for me. thanks!

-Layne