Skip to content

Commit

Permalink
stash
Browse files Browse the repository at this point in the history
  • Loading branch information
marchingband committed Dec 14, 2021
1 parent ee7ef90 commit c20d83c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/WVR.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "Arduino.h"


class WVR {
public:
WVR();
Expand Down
6 changes: 5 additions & 1 deletion src/file_system.c
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,10 @@ size_t get_website_chunk(size_t start_block, size_t toWrite, uint8_t *buffer, si

void updateVoiceConfig(char *json){
feedLoopWDT();
cJSON *vc_json = cJSON_Parse(json);
const cJSON *vc_json = cJSON_Parse(json);
if(vc_json == NULL){
log_i("voice json too big :(");
}
feedLoopWDT();
cJSON *voice = NULL;
cJSON *note = NULL;
Expand Down Expand Up @@ -1099,6 +1102,7 @@ void updateVoiceConfig(char *json){
if(voice_data[num_note].isRack > -1)
{
// this is a non-rack overwritting a former rack
log_i("deleting rack %d", voice_data[num_note].isRack);
clear_rack(voice_data[num_note].isRack);
voice_data[num_note].isRack = -1;
}
Expand Down
6 changes: 6 additions & 0 deletions src/pot.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
#ifndef POT_H
#define POT_H
#ifdef __cplusplus
extern "C" {
#endif

// #include "Arduino.h"

void (* onPot)(uint32_t);
void pot_init(void);

#ifdef __cplusplus
}
#endif
#endif

0 comments on commit c20d83c

Please sign in to comment.