Browse Source

Merge pull request #7193 from smlng/sys/phydat/add_hecto_prefix

sys,phydat: add missing prefix, and string conversions
master
Martine Lenders 6 years ago committed by GitHub
parent
commit
ce0a8ac744
  1. 3
      sys/phydat/phydat_str.c

3
sys/phydat/phydat_str.c

@ -64,6 +64,8 @@ const char *phydat_unit_to_str(uint8_t unit)
case UNIT_TEMP_K: return "K";
case UNIT_LUX: return "lx";
case UNIT_M: return "m";
case UNIT_M2: return "m^2";
case UNIT_M3: return "m^3";
case UNIT_G: return "g";
case UNIT_DPS: return "dps";
case UNIT_GR: return "G";
@ -86,6 +88,7 @@ char phydat_scale_to_str(int8_t scale)
case -9: return 'n';
case -12: return 'p';
case -15: return 'f';
case 2: return 'h';
case 3: return 'k';
case 6: return 'M';
case 9: return 'G';

Loading…
Cancel
Save