Robot-Will / Stino

A Sublime Text Plugin for Arduino
Other
1.58k stars 250 forks source link

Arduino Upload runs on C source file #415

Closed Defragster closed 7 years ago

Defragster commented 7 years ago

I accidentally hit UPLOAD while editing a common system core source file and it compiled and went to upload.

But I have sketches open to 3 different MCU's and I didn't know what it was going to upload so I cancelled.

Would it make sense to limit UPLOAD to *.INO sketch files? Or will it somehow do the right thing - or compile and upload the last sketch uploaded?

Robot-Will commented 7 years ago

This plugin is compatibale with none-Arduino projects, such as avr projects not using Arduino core. So it builds C/C++/Arduino source files.

I added a menu item: Menu -> Build Options -> Build Enabled

You can disable build/upload manually if you do not need build/upload.

Thanks.

Defragster commented 7 years ago

Thanks - I had not considered that - no problem as it was. I'm not sure it is worth yet another menu item.