]> rtime.felk.cvut.cz Git - jenkicar/rpp-simulink.git/commitdiff
Make checkboxes with linux only downloading features disabled on Windows
authorMichal Horn <hornmich@fel.cvut.cz>
Wed, 4 Feb 2015 15:24:49 +0000 (16:24 +0100)
committerMichal Horn <hornmich@fel.cvut.cz>
Wed, 4 Feb 2015 15:24:49 +0000 (16:24 +0100)
rpp/rpp/rpp.tlc

index 402aba782a1d765507f6ce393ac776ed68d4cec7..089c0237257e5c1516d51a4e4389fa4f4ab334c5 100644 (file)
   rtwoptions(oIdx).prompt          = 'Download compiled binary to SDRAM.';
   rtwoptions(oIdx).type            = 'Checkbox';
   rtwoptions(oIdx).default         = 'off';
+if isunix
+  rtwoptions(oIdx).enable          = 'on';
+else
+  rtwoptions(oIdx).enable          = 'off';
+end
   rtwoptions(oIdx).tlcvariable     = 'rppDownloadToSDRAM';
   rtwoptions(oIdx).makevariable    = 'RPP_DOWNLOAD_TO_SDRAM';
   rtwoptions(oIdx).tooltip         = ['Download the compiled binary to the SDRAM instead of the internal Flash memory.'];
   rtwoptions(oIdx).prompt          = 'Use OpenOCD to download the compiled binary';
   rtwoptions(oIdx).type            = 'Checkbox';
   rtwoptions(oIdx).default         = 'off';
+if isunix
+  rtwoptions(oIdx).enable          = 'on';
+else
+  rtwoptions(oIdx).enable          = 'off';
+end
   rtwoptions(oIdx).tlcvariable     = 'rppUseOpenOCD';
   rtwoptions(oIdx).makevariable    = 'RPP_USE_OPENOCD';
   rtwoptions(oIdx).tooltip         = ['Use the OpenOCD to download the compiled binary instead of the Ti DSS Generic Loader.'];