| 1088 | } |
| 1089 | |
| 1090 | static uint32_t getUsForResolution(uint8_t resolution) { |
| 1091 | switch (resolution) { |
| 1092 | case RF_LISTEN1_RESOL_RX_64: |
| 1093 | case RF_LISTEN1_RESOL_IDLE_64: |
| 1094 | return 64; |
| 1095 | case RF_LISTEN1_RESOL_RX_4100: |
| 1096 | case RF_LISTEN1_RESOL_IDLE_4100: |
| 1097 | return 4100; |
| 1098 | case RF_LISTEN1_RESOL_RX_262000: |
| 1099 | case RF_LISTEN1_RESOL_IDLE_262000: |
| 1100 | return 262000; |
| 1101 | default: |
| 1102 | // Whoops |
| 1103 | return 0; |
| 1104 | } |
| 1105 | } |
| 1106 | |
| 1107 | static uint32_t getCoefForResolution(uint8_t resolution, uint32_t duration) { |
| 1108 | uint32_t resolDuration = getUsForResolution(resolution); |
no outgoing calls
no test coverage detected