update for chibios
This commit is contained in:
parent
220adce11b
commit
20b1dbfed8
@ -241,7 +241,7 @@ static const dacsample_t dac_buffer_2[DAC_BUFFER_SIZE] = {
|
|||||||
* DAC streaming callback.
|
* DAC streaming callback.
|
||||||
*/
|
*/
|
||||||
size_t nx = 0, ny = 0, nz = 0;
|
size_t nx = 0, ny = 0, nz = 0;
|
||||||
static void end_cb1(DACDriver *dacp, const dacsample_t *buffer, size_t n) {
|
static void end_cb1(DACDriver *dacp, dacsample_t *buffer, size_t n) {
|
||||||
|
|
||||||
(void)dacp;
|
(void)dacp;
|
||||||
|
|
||||||
@ -564,7 +564,7 @@ static void gpt_cb8(GPTDriver *gptp) {
|
|||||||
note_position++;
|
note_position++;
|
||||||
bool end_of_note = false;
|
bool end_of_note = false;
|
||||||
if (GET_CHANNEL_1_FREQ > 0) {
|
if (GET_CHANNEL_1_FREQ > 0) {
|
||||||
if (!note_resting)
|
if (!note_resting)
|
||||||
end_of_note = (note_position >= (note_length*16 - 1));
|
end_of_note = (note_position >= (note_length*16 - 1));
|
||||||
else
|
else
|
||||||
end_of_note = (note_position >= (note_length*16));
|
end_of_note = (note_position >= (note_length*16));
|
||||||
|
Reference in New Issue
Block a user