Code:
in mode4.cpp
void datastream_control::m4_maf_value(int value, int cell){
char low = value & 0xff;
char high = (value >> 8) & 0xff;
m4_lock.lock();
construct_mode4[20] = high;
construct_mode4[21] = low;
construct_mode4[18] = cell;
m4_updated.request();
m4_lock.unlock();
}
in controller.cpp
void controller::on_maf_ram_btn_toggled(bool checked) {
if(checked == true){
uint16_t value = ui->maf_value->value() / 0.007813;
int cell = ui->maf_cell->value();
control->m4_maf_value(value, cell);
update_m4_raw_display();
}
}
Somehow I did managed to get to this result that worked.
I am having troubles with the button now.
I am struggling to make it to send the command while pressed and send nothing when released.
Now it works only when toggled, and when untoggled keeps sending m4 command.
edit:
Will the eehack freak out if the seed is different on e and t side.
Bookmarks