Bladeren bron

fix: luat_i2s_setup编译失败,原因是函数参数变了,加了const

Wendal Chen 2 jaren geleden
bovenliggende
commit
377ef2fc23
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      app/port/luat_i2s_air101.c

+ 1 - 1
app/port/luat_i2s_air101.c

@@ -92,7 +92,7 @@ luat_i2s_conf_t *luat_i2s_get_config(uint8_t id){
 	return &i2s_conf;
 }
 
-int luat_i2s_setup(luat_i2s_conf_t *conf) {
+int luat_i2s_setup(const luat_i2s_conf_t *conf) {
     if (I2s_tx_dma_init()){
         return -1;
     }