* m3: clock update, cannot set clk 4 and 5 anymore
* updated firmware version
This commit is contained in:
Dhanya Thattil
2022-11-07 11:21:37 +01:00
committed by GitHub
parent 3560f81d8e
commit 9f906a779e
6 changed files with 27 additions and 21 deletions

View File

@ -6017,7 +6017,11 @@ int set_clock_divider(int file_des) {
// only set
if (Server_VerifyLock() == OK) {
#ifdef MYTHEN3D
if (args[0] >= NUM_CLOCKS_TO_SET) {
#else
if (args[0] >= NUM_CLOCKS) {
#endif
modeNotImplemented("clock index (divider set)", args[0]);
}
@ -6075,7 +6079,7 @@ int get_clock_divider(int file_des) {
#else
// get only
if (arg >= NUM_CLOCKS) {
modeNotImplemented("clock index (divider set)", arg);
modeNotImplemented("clock index (divider get)", arg);
}
if (ret == OK) {
enum CLKINDEX c = (enum CLKINDEX)arg;