Skip to content

Commit cfa8e9e

Browse files
author
mars
committed
reverted strnlen / strlcpy changes and gcc version
1 parent ed4c94b commit cfa8e9e

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

Source/HeavyPatch.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class HeavyPatch : public Patch {
101101
float note = (float)(bid - MIDI_NOTE_BUTTON);
102102
float velocity = (float)(value>>5);
103103
// unsigned int hash = 0x41BE0F9C; // __hv_ctlin
104-
float ms = 1000.0f*(samples+getBlockSize())/getSampleRate(); // delay in milliseconds
104+
float ms = 0;//1000.0f*(samples+getBlockSize())/getSampleRate(); // delay in milliseconds
105105
// float cmd = value ? 0x90 : 0x80;
106106
hv_msg_setFloat(notein, 0, note);
107107
hv_msg_setFloat(notein, 1, velocity);

Source/message.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ char* ftoa(float val, int base){
4242
}
4343

4444
void debugMessage(const char* msg){
45-
strncpy(buffer, msg, 64);
45+
strlcpy(buffer, msg, 64);
4646
getProgramVector()->message = buffer;
4747
}
4848

common.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
DSPLIB=Libraries/CMSIS/DSP_Lib/Source
33

44
# Tool path
5-
TOOLROOT ?= Tools/gcc-arm-none-eabi-5_3-2016q1/bin/
5+
# TOOLROOT ?= Tools/gcc-arm-none-eabi-5_3-2016q1/bin/ # missing strnlen/strlcpy
6+
TOOLROOT ?= Tools/gcc-arm-none-eabi-5_2-2015q4/bin/
67

78
CMSIS ?= Libraries/CMSIS/Include/
89

0 commit comments

Comments
 (0)