Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ConfigurableFirmata.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
#define REPORT_FIRMWARE 0x79 // report name and version of the firmware
#define SAMPLING_INTERVAL 0x7A // set the poll rate of the main loop
#define SCHEDULER_DATA 0x7B // send a createtask/deletetask/addtotask/schedule/querytasks/querytask request to the scheduler
#define ANALOG_CONFIG 0x7C // (reserved)
#define SAMPLING_INTERVAL_QUERY 0x7C // request the current sampling interval
#define FREQUENCY_COMMAND 0x7D // Command for the Frequency module
#define SYSEX_NON_REALTIME 0x7E // MIDI Reserved for non-realtime messages
#define SYSEX_REALTIME 0x7F // MIDI Reserved for realtime messages
Expand Down
7 changes: 7 additions & 0 deletions src/FirmataReporting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ boolean FirmataReporting::handleSysex(byte command, byte argc, byte* argv)
return true;
}
}
if (command == SAMPLING_INTERVAL_QUERY) {
Firmata.startSysex();
Firmata.write(SAMPLING_INTERVAL);
Firmata.sendPackedUInt14(samplingInterval);
Firmata.endSysex();
return true;
}
return false;
}

Expand Down