KaeptnBalu / Arduino_Spot_Welder_V3

GNU General Public License v3.0
201 stars 70 forks source link

V3.3.3 Arduino Code - integer implicitly truncated to unsigned type #12

Closed richard-scott closed 4 years ago

richard-scott commented 4 years ago

I'm getting this error when compling code:

Arduino_Spot_Welder_V3_3_3.ino:1076:74: warning: large integer implicitly truncated to unsigned type [-Woverflow]
     setTextProp(1, (SSD1306_LCDWIDTH-(sizeof(LS_PULSEV)-1)*CHR_W*2)/2, 16);
                                                                          ^

This is the section of code: image

I've not yet got a fix for it.

richard-scott commented 4 years ago

I've squashed the error in my repo here: https://github.com/richard-scott/Arduino_Spot_Welder_V3 I'll create a PR.