| 96 | } |
| 97 | |
| 98 | void ToneGenerator::preload_buffer() { |
| 99 | int cont = provide(_preload_blocks); |
| 100 | |
| 101 | if (_preload_blocks - cont > 0) cont += provide(_preload_blocks - cont); |
| 102 | |
| 103 | Serial.print("preload blocks: "); |
| 104 | Serial.println(cont); |
| 105 | } |
| 106 | |
| 107 | int ToneGenerator::provide(int n) { |
| 108 | for(int i = 0; i < n; i++) { |
nothing calls this directly
no outgoing calls
no test coverage detected