Mercurial > public > ostc_companion
comparison OSTC4Operations.cpp @ 3:4ace58a7c03c
Send disconnect command before closing the connection
The old BT module transmitted a notification in case a connection were
closed which cause the ostc to exit the uart loop. The new one doesn't
do this => send disconnect command to avoid waiting in the installation
loop till timeout or button press.
| author | Ideenmodellierer |
|---|---|
| date | Fri, 28 Nov 2025 20:00:02 +0100 |
| parents | 0b3630a29ad8 |
| children | e30f00f760d3 |
comparison
equal
deleted
inserted
replaced
| 2:177f640940f2 | 3:4ace58a7c03c |
|---|---|
| 372 } | 372 } |
| 373 | 373 |
| 374 //---- Done -------------------------------------------------------------- | 374 //---- Done -------------------------------------------------------------- |
| 375 // Low-level close, to avoid trying to send a 0xFF byte... | 375 // Low-level close, to avoid trying to send a 0xFF byte... |
| 376 if( !dryRun ) { | 376 if( !dryRun ) { |
| 377 _serial.close(); | 377 disconnect(true); |
| 378 _connectMode = CLOSED_MODE; | |
| 379 } | 378 } |
| 380 | 379 |
| 381 PROGRESS_RESET(); | 380 PROGRESS_RESET(); |
| 382 | 381 |
| 383 //---- Check FILE checksum on first pass --------------------------------- | 382 //---- Check FILE checksum on first pass --------------------------------- |
