Mercurial > public > ostc_companion
diff OSTC3Operations.cpp @ 5:115cfa4a3239 default tip
Added icon upload function for OSTC 4/5
For the upload the same process as the one for the firmware update is used => CRC functionality has been copied from the ostc_pack SW
| author | Ideenmodellierer |
|---|---|
| date | Tue, 30 Dec 2025 21:41:02 +0100 |
| parents | 0b3630a29ad8 |
| children |
line wrap: on
line diff
--- a/OSTC3Operations.cpp Sun Nov 30 18:37:32 2025 +0100 +++ b/OSTC3Operations.cpp Tue Dec 30 21:41:02 2025 +0100 @@ -497,9 +497,12 @@ // Also, the general acknowledge byte is changed to 0x4c 'L'. assert( _connectMode != SERVICE_MODE ); - _serial.open( Settings::port, emulatorName); - _serial.sleep(333); // Initial 1/3 sec before trying service mode... + if( _connectMode == CLOSED_MODE ) + { + _serial.open( Settings::port, emulatorName); + _serial.sleep(333); // Initial 1/3 sec before trying service mode... + } for(int retry=0; retry < 10; ++retry) { unsigned char serviceMode[] = { 0xAA, 0xAB, 0xCD, 0xEF };
