Mercurial > public > ostc_companion
comparison OSTC_CR_Operations.cpp @ 8:21ce6187d32e
Minor changes done by automatic style checker
| author | Ideenmodellierer |
|---|---|
| date | Mon, 12 Jan 2026 13:51:17 +0000 |
| parents | 0b3630a29ad8 |
| children |
comparison
equal
deleted
inserted
replaced
| 7:0969ef86c42d | 8:21ce6187d32e |
|---|---|
| 54 } | 54 } |
| 55 | 55 |
| 56 HardwareOperations::CompanionFeatures OSTCcROperations::supported() const | 56 HardwareOperations::CompanionFeatures OSTCcROperations::supported() const |
| 57 { | 57 { |
| 58 // No ICON, no DUMPSCREEN | 58 // No ICON, no DUMPSCREEN |
| 59 return CompanionFeatures(PARAMETERS|DATE|NAME|FIRMWARE | 59 return CompanionFeatures(PARAMETERS | DATE | NAME | FIRMWARE | HELIUM_DIVE | CCR_DIVE); |
| 60 |HELIUM_DIVE|CCR_DIVE); | |
| 61 } | 60 } |
| 62 | 61 |
| 63 void OSTCcROperations::getIdentity() | 62 void OSTCcROperations::getIdentity() |
| 64 { | 63 { |
| 65 descriptionString.clear(); | 64 descriptionString.clear(); |
| 66 | 65 |
| 67 LOG_TRACE("Getting model..."); | 66 LOG_TRACE("Getting model..."); |
| 68 HardwareDescriptor hw = hardwareDescriptor(); | 67 HardwareDescriptor hw = hardwareDescriptor(); |
| 69 if( hw != HW_UNKNOWN_OSTC && hw != HW_OSTCcR_a && hw != HW_OSTCcR_b ) | 68 if (hw != HW_UNKNOWN_OSTC && hw != HW_OSTCcR_a && hw != HW_OSTCcR_b) |
| 70 LOG_THROW("Not an OSTC cR."); | 69 LOG_THROW("Not an OSTC cR."); |
| 71 | 70 |
| 72 LOG_TRACE("Getting identity..."); | 71 LOG_TRACE("Getting identity..."); |
| 73 getCommonIdentity(); | 72 getCommonIdentity(); |
| 74 | 73 |
| 75 if( hw == HW_UNKNOWN_OSTC && (firmware() > 0x0A00 || serialNumber() > 10000) ) | 74 if (hw == HW_UNKNOWN_OSTC && (firmware() > 0x0A00 || serialNumber() > 10000)) |
| 76 LOG_THROW("Not an OSTC cR"); | 75 LOG_THROW("Not an OSTC cR"); |
| 77 | 76 |
| 78 LOG_TRACE("Found " << descriptionString); | 77 LOG_TRACE("Found " << descriptionString); |
| 79 } | 78 } |
| 80 | 79 |
