Closed ghost closed 4 years ago
Alternatively, I could propose a >0 check. What do you think? I chose 32 as a power of two that kept to the spirit of your implementation.
I have just tried to compile a very simple blink example for CH551, just a clock config, delay routine and port toggling. The firmware was 235 bytes, so yes, the 255 limit is too high. I'm using SDCC 4.0. I have picked up that part from Aarons script which i used as base. I think just a >0 check would be ok here.
Reduce filesize requirement for validation to account for smaller blink-LED type files.