I'm trying to reset an Arduino Pro Micro with a new code and it is not allowing me to. I'm using an empty sketch to upload to the pro micro but I get different error messages every time. I think the reason why it doesn't allow me to upload code is because it is programmed to start on boot. As soon as it's plugged in to a USB port the code runs, and causes this issue.
Some of the errors I get is
Arduino: 1.8.2 (Linux), Board: "Arduino/Genuino Micro" Sketch uses 3602 bytes (12%) of program storage space. Maximum is 28672 bytes. Global variables use 147 bytes (5%) of dynamic memory, leaving 2413 bytes for local variables. Maximum is 2560 bytes. avrdude: ser_open(): can't open device "/dev/ttyACM0": Device or resource busy Problem uploading to board.`
Does anyone know how I can fix this?