Skip to content

Commit

Permalink
remove some printf messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Huy Do committed May 25, 2021
1 parent 04b4ec8 commit af5d22f
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@ void i2c0_irq_handler() {
// reset heads
tx_head = 0;
rx_head = 0;
printf("ABRT %d \r\n", *I2C0_RAW_INTR_STAT);
printf("ABRT %d \r\n", *I2C0_TX_ABRT_SOURCE);
*I2C0_CLR_TX_ABRT;
}

Expand Down Expand Up @@ -244,7 +242,6 @@ void i2c0_irq_handler() {

// Read the data (this will clear the interrupt)
uint32_t value = *I2C0_DATA_CMD;
//printf("%02X ", value);

// Check if this is the 1st byte we have received
if (value & I2C_DATA_CMD_FIRST_BYTE) {
Expand All @@ -258,7 +255,7 @@ void i2c0_irq_handler() {
if (rx_head == READ_SIZE) {
printhex(rxdata, READ_SIZE);
mode_selected = rxdata[0];
printf("mode: %d \r\n", mode_selected);
//printf("mode: %d \r\n", mode_selected);

switch(mode_selected) {
case 1 : mode_normal(); break;
Expand Down Expand Up @@ -441,12 +438,5 @@ int main() {
adc_select_input(2);
adc_z_raw = adc_read() * 65500/4096;

/*
if (current_tick() - last_trigger > 2000) {
last_trigger = current_tick();
printf("x: %d y: %d z: %d f: %d s: %d \r\n", adc_x_raw, adc_y_raw, adc_z_raw, adc_feed_raw, adc_spindle_raw);
}
*/

}
}

0 comments on commit af5d22f

Please sign in to comment.