message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Fix logic for detecting _libc_fpstate API
This fixes use of the incorrect API on x86 64-bit Linux, which was causing OpenEXR compilation to fail on the latest 64-bit Ubuntu.
See https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/x86/sys/ucontext.h which defines two different `_libc_fpstate` struct... | @@ -243,14 +243,14 @@ restoreControlRegs (const ucontext_t& ucon, bool clearExceptions)
inline void
restoreControlRegs (const ucontext_t& ucon, bool clearExceptions)
{
-# if defined(__GLIBC__) || defined(__i386__)
+# if defined(__GLIBC__) && defined(__i386__)
setCw ((ucon.uc_mcontext.fpregs->cw & cwRestoreMask) | cwRes... |
[core] forward SIGHUP only to lighttpd workers
(do not propagate SIGHUP to entire lighttpd process group,
which might include other processes such as CGI, rrdtool,
piped loggers, ...) | @@ -92,7 +92,6 @@ static volatile sig_atomic_t graceful_shutdown = 0;
static volatile sig_atomic_t srv_shutdown = 0;
static volatile sig_atomic_t handle_sig_alarm = 1;
static volatile sig_atomic_t handle_sig_hup = 0;
-static volatile sig_atomic_t forwarded_sig_hup = 0;
#if defined(HAVE_SIGACTION) && defined(SA_SIGINFO)... |
Shared strings? | @@ -684,7 +684,8 @@ void *ws_on_data_inGIL(void *args_) {
rb_str_set_len(buffer, a->length);
fprintf(stderr, "INFO: iodine calling Ruby handler\n");
rb_funcallv(handler, iodine_on_message_func_id, 1, &buffer);
- /* reclaim full capacity */
+ /* make sure the string is modifiable and no buffer space is freed */
+ rb_str... |
Add travis tests for CC1350 boards | @@ -9,9 +9,11 @@ ipv6/multicast/ev-aducrf101mkxz \
cc26xx/cc26xx-web-demo/srf06-cc26xx \
cc26xx/very-sleepy-demo/srf06-cc26xx:BOARD=sensortag/cc2650 \
cc26xx/cc26xx-web-demo/srf06-cc26xx:BOARD=sensortag/cc2650 \
+cc26xx/cc26xx-web-demo/srf06-cc26xx:BOARD=sensortag/cc1350 \
cc26xx/cc26xx-web-demo/srf06-cc26xx:BOARD=srf0... |
futex_wake_one(): remove assert on thread state
When the global kernel lock is removed, a thread being woken up
could run in another cpu and be blocked again, while the
futex_wake_one() function is still executing. Thus, in this
function there should be no assertions on the thread state. | @@ -46,15 +46,7 @@ static struct futex * soft_create_futex(process p, u64 key)
static thread futex_wake_one(struct futex * f)
{
- thread w;
-
- w = blockq_wake_one(f->bq);
- if (w == INVALID_ADDRESS)
- return w;
-
- /* w must be awake */
- assert(w->blocked_on != f->bq);
- return w;
+ return blockq_wake_one(f->bq);
}
/... |
common/base32.c: Format with clang-format
BRANCH=none
TEST=none | #include "base32.h"
#include "util.h"
-static const unsigned char crc5_table1[] = {
- 0x00, 0x0E, 0x1C, 0x12, 0x11, 0x1F, 0x0D, 0x03,
- 0x0B, 0x05, 0x17, 0x19, 0x1A, 0x14, 0x06, 0x08
-};
+static const unsigned char crc5_table1[] = { 0x00, 0x0E, 0x1C, 0x12, 0x11, 0x1F,
+ 0x0D, 0x03, 0x0B, 0x05, 0x17, 0x19,
+ 0x1A, 0x14,... |
input: release tmp buffer when mem_buf_limit is used | @@ -206,6 +206,7 @@ int flb_input_set_property(struct flb_input_instance *in, char *k, char *v)
}
else if (prop_key_check("mem_buf_limit", k, len) == 0 && tmp) {
in->mp_buf_limit = flb_utils_size_to_bytes(tmp);
+ flb_free(tmp);
}
else if (in->p->flags & FLB_INPUT_NET) {
if (prop_key_check("listen", k, len) == 0) {
|
Add CAMERA_USAGE option for info.plist | ::if value::<true/>::else::<false/>::end::
::end::
</dict>
+ ::if (CAMERA_USAGE)::
+ <key>NSCameraUsageDescription</key>
+ <string>::CAMERA_USAGE::</string>
+ ::end::
</dict>
</plist>
|
Bump version to hslua 1.0.2 | name: hslua
-version: 1.0.1
+version: 1.0.2
synopsis: Bindings to Lua, an embeddable scripting language
description: HsLua provides bindings, wrappers, types, and helper
functions to bridge Haskell and <https://www.lua.org/ Lua>.
|
fix typo in patch name | @@ -24,7 +24,7 @@ Group: %{PROJ_NAME}/dev-tools
Source: https://sourceware.org/pub/%{pname}/%{pname}-%{version}.tar.bz2
Source1: OHPC_macros
%ifarch aarch64
-Patch1: revVEX3352..v3.13.0.patch
+Patch1: revVEX3352.v3.13.0.patch
Patch2: rev16269.v3.13.0.patch
Patch3: rev16309.patch
Patch4: thunderx_always_use_fallback_LLS... |
fixed a bug in EnergyResiduals | @@ -3660,7 +3660,7 @@ void EnergyResiduals(BODY *body, int iBody, int day) {
body[iBody].daLambdaSea[i+1]*(body[iBody].daTempWater[i]-body[iBody].daTempWater[i+1])-\
nu_fw*(body[iBody].daTempWater[i]-body[iBody].daTempLand[i])-\
body[iBody].daPlanckASea[i]-body[iBody].daPlanckBSea[i]*body[iBody].daTempWater[i];
- } els... |
Main: initialize modules only after phase three | @@ -109,6 +109,7 @@ main(void)
}
#endif /* NETSTACK_CONF_WITH_IPV6 */
+ platform_init_stage_three();
#if BUILD_WITH_ORCHESTRA
orchestra_init();
@@ -120,8 +121,6 @@ main(void)
LOG_DBG("With Shell\n");
#endif /* BUILD_WITH_SHELL */
- platform_init_stage_three();
-
autostart_start(autostart_processes);
watchdog_start();
|
Add Elko thermostat, | @@ -213,6 +213,7 @@ static const SupportedDevice supportedDevices[] = {
{ VENDOR_119C, "TH1300ZB", sinopeMacPrefix }, // Sinope Thermostat
{ VENDOR_ZEN, "Zen-01", zenMacPrefix }, // Zen Thermostat
{ VENDOR_C2DF, "3157100-E", emberMacPrefix }, // Centralite Thermostat
+ { VENDOR_EMBER, "Super TR", emberMacPrefix }, // E... |
btshell: Fix bogus error message on connect | @@ -823,7 +823,9 @@ cmd_connect(int argc, char **argv)
if (ext == 0x00) {
rc = btshell_conn_initiate(own_addr_type, peer_addr_param, duration_ms,
&phy_1M_params);
+ if (rc) {
console_printf("error connecting; rc=%d\n", rc);
+ }
return rc;
}
@@ -831,7 +833,9 @@ cmd_connect(int argc, char **argv)
rc = btshell_ext_conn_in... |
publish: fix backoff | :: if nacked, then set a exponential backoff and retry
=/ nack-count=@ud
+((~(gut by migrate) rid 0))
- ?: (gte 24 nack-count)
+ ?: (gte nack-count 24)
~& >>> "failed to migrate notebook {<rid>} to graph-store"
[~ this]
:_ this(migrate (~(put by migrate) rid nack-count))
|
Update README.md
Getting Help now points to cFS repo | @@ -16,6 +16,6 @@ Version description document contains references to internal repositories and so
## Getting Help
-The cFS community page http://coreflightsystem.org should be your first stop for getting help. Please post questions to http://coreflightsystem.org/questions/. There is also a forum at http://coreflightsy... |
parser: Enum dynaload doesn't need to do this.
This was necessary when dynaloads were able to run expressions. | @@ -2074,9 +2074,6 @@ static lily_class *dynaload_enum(lily_parse_state *parser, lily_module_entry *m,
collect_generics_for(parser, enum_cls);
lily_pop_lex_entry(lex);
- lily_type *save_self_type = parser->class_self_type;
- parser->class_self_type = enum_cls->self_type;
-
/* A flat enum like Option will have a header ... |
py/send_message: add 'Rotate screen' to bootloader | @@ -891,6 +891,7 @@ class SendMessageBootloader:
("Show firmware hash at startup", self._show_fw_hash),
("Don't show firmware hash at startup", self._dont_show_fw_hash),
("Get firmware & sigkey hashes", self._get_hashes),
+ ("Rotate screen", self._device.screen_rotate),
)
choice = ask_user(choices)
if isinstance(choice... |
changed method of memsetting to address memory leak | @@ -1376,12 +1376,7 @@ array_list_insert(
array_list->current_size = array_list->current_size * 2;
array_list->data = (ion_fpos_t *) realloc(array_list->data, array_list->current_size * sizeof(ion_fpos_t));
-
- int i;
-
- for (i = old_size + 1; i < array_list->current_size - 1; i++) {
- memset(array_list->data + i * si... |
add common_modules to project.tcl | @@ -88,7 +88,7 @@ make_wrapper -files [get_files $bd_path/system.bd] -top
add_files -norecurse $bd_path/hdl/system_wrapper.v
-set files [glob -nocomplain projects/$project_name/*.v projects/$project_name/*.sv]
+set files [glob -nocomplain cores/common_modules/*.v projects/$project_name/*.v projects/$project_name/*.sv]
... |
ssl test ssl_decrypt_non_etm_cbc(): add missing ret check | @@ -3592,6 +3592,8 @@ void ssl_decrypt_non_etm_cbc( int cipher_type, int hash_id, int trunc_hmac,
MBEDTLS_SSL_MINOR_VERSION_3,
0 , 0 );
+ TEST_ASSERT( ret == 0 );
+
/* Determine padding/plaintext length */
TEST_ASSERT( length_selector >= -2 && length_selector <= 255 );
block_size = t0.ivlen;
|
Add missing flags for EVP_chacha20()
ChaCha20 code uses its own custom cipher_data. Add EVP_CIPH_CUSTOM_IV
and EVP_CIPH_ALWAYS_CALL_INIT so that the key and the iv can be set by
different calls of EVP_CipherInit_ex(). | @@ -127,7 +127,7 @@ static const EVP_CIPHER chacha20 = {
1, /* block_size */
CHACHA_KEY_SIZE, /* key_len */
CHACHA_CTR_SIZE, /* iv_len, 128-bit counter in the context */
- 0, /* flags */
+ EVP_CIPH_CUSTOM_IV | EVP_CIPH_ALWAYS_CALL_INIT,
chacha_init_key,
chacha_cipher,
NULL,
|
extprotocol: fix option parsing in check_ext_options
When this code was added (commit 210ab15e), it treated the
ExtTableEntry.options member as a List of DefElems. It's actually a List
of Values (specifically, T_Strings). This code will break when the
offset of DefElem.defname changes in the upcoming 8.4 merge iteratio... | @@ -47,8 +47,8 @@ static void check_ext_options(const FunctionCallInfo fcinfo)
List *options = exttbl->options;
foreach(cell, options) {
- DefElem *def = (DefElem *) lfirst(cell);
- char *key = def->defname;
+ Value *value = (Value *) lfirst(cell);
+ char *key = value->val.str;
if (key && strcasestr(key, "database") &&... |
website: update man page | @@ -81,7 +81,7 @@ A full text search using Algolia is implemented https://issues\.libelektra\.org/
.IP "" 0
.
.SS "Limitations"
-\fBAngularJS 2:\fR At the time of development start, there was no stable AngularJS 2 release available yet, only early previews\. Because of that, the frontend was developed using AngularJS 1... |
Send protected packet as soon as handshake completes on client side | @@ -2014,16 +2014,14 @@ ssize_t ngtcp2_conn_write_pkt(ngtcp2_conn *conn, uint8_t *dest, size_t destlen,
return NGTCP2_ERR_REQUIRED_TRANSPORT_PARAM;
}
- if (!conn->early_rtb) {
- return 0;
- }
-
+ if (conn->early_rtb) {
rv = conn_process_early_rtb(conn);
if (rv != 0) {
return rv;
}
+ }
- return conn_retransmit(conn, des... |
* Be more safe in ejdb2_isolate_shared_release | @@ -725,7 +725,7 @@ static iwrc ejdb2_isolate_shared_release(EJDB2Handle **hp) {
EJDB2Handle *h = *hp;
*hp = 0;
if (--h->refs <= 0) {
- rc = ejdb_close(&h->db);
+ if (h->db) rc = ejdb_close(&h->db);
if (h->prev) {
h->prev->next = h->next;
} else {
|
Add missing qlog spin state initialization | @@ -1179,6 +1179,8 @@ int qlog_connection_start(uint64_t time, const picoquic_connection_id_t * cid, i
ctx->key_phase_received = 0;
ctx->spin_bit_sent_last = 0;
ctx->spin_bit_sent = 0;
+ ctx->spin_bit_received_last = 0;
+ ctx->spin_bit_received = 0;
fprintf(f, "{ \"qlog_version\": \"draft-00\", \"title\": \"picoquic\",... |
neon/rndn: Fix macros to workaround bugs | @@ -77,8 +77,7 @@ SIMDE_FUNCTION_ATTRIBUTES
simde_float64x1_t
simde_vrndn_f64(simde_float64x1_t a) {
#if \
- defined(SIMDE_ARM_NEON_A32V8_NATIVE) && \
- (!defined(HEDLEY_GCC_VERSION) || defined(SIMDE_ARM_NEON_A64V8_NATIVE))
+ defined(SIMDE_ARM_NEON_A64V8_NATIVE)
return vrndn_f64(a);
#else
simde_float64x1_private
@@ -12... |
Fix cache statistics reporting in fpgadiag.
_fpga_token changed. A better solution here would be to expose sysfspath in
the OPAE API given a token. | @@ -215,6 +215,7 @@ std::string fpga_resource::sysfs_path_from_token(fpga_token t)
{
struct _fpga_token
{
+ uint32_t instance;
uint64_t magic;
char sysfspath[256];
char devpath[256];
|
Fix incorrect extension layout | @@ -2681,7 +2681,7 @@ typedef struct _PROCESS_DISK_COUNTERS
} PROCESS_DISK_COUNTERS, *PPROCESS_DISK_COUNTERS;
// private
-typedef struct _ENERGY_STATE_DURATION
+typedef union _ENERGY_STATE_DURATION
{
union
{
@@ -2715,8 +2715,8 @@ typedef struct _PROCESS_ENERGY_VALUES
ULONG CompositionDirtyGenerated;
ULONG CompositionDi... |
Update mili version to 22.1 in windows config-site. | @@ -213,7 +213,7 @@ VISIT_OPTION_DEFAULT(VISIT_MFEM_INCDEP ZLIB_INCLUDE_DIR CONDUIT_INCLUDE_DIR TYPE
##
## MILI
##
-VISIT_OPTION_DEFAULT(VISIT_MILI_DIR ${VISITHOME}/Mili/19.2)
+VISIT_OPTION_DEFAULT(VISIT_MILI_DIR ${VISITHOME}/Mili/22.1)
##
## OpenEXR
|
doc BUGFIX refer flag for config data validation | @@ -143,10 +143,10 @@ struct ly_in;
statements are not checked, and default values are not added (only the ones
parsed are present). */
#define LYD_PARSE_STRICT 0x020000 /**< Instead of silently ignoring data without schema definition raise an error.
- Do not combine with #LYD_PARSE_OPAQ (except for ::LYD_LYB). */
+ Do... |
[mod_access] remove excess trace
trace is still issued if access is denied
and r->log_request_handling is set | @@ -118,9 +118,7 @@ static int mod_access_check (const array * const allow, const array * const deny
}
/**
- * URI handler
- *
- * we will get called twice:
+ * handler is called twice:
* - after the clean up of the URL and
* - after the pathinfo checks are done
*
@@ -128,17 +126,9 @@ static int mod_access_check (const... |
Update the release documentation
Add instructions about release notes, and pushing tags. | @@ -15,6 +15,12 @@ incremeting the numbers:
We add pre-release tags of the format MAJOR.MINOR.PATCH-rc1.
+## Release Notes
+
+Before making a release, be sure to update the `docs/release-notes.md`
+to describe the release. This should be a high-level description of
+the changes, not a list of the git commits.
+
## Rele... |
fix windows unix socket | @@ -54,6 +54,7 @@ static tb_int_t tb_socket_type(tb_size_t type)
}
static tb_int_t tb_socket_proto(tb_size_t type, tb_size_t family)
{
+ if (family == TB_IPADDR_FAMILY_UNIX) return 0;
// get protocal type
switch (type & 0xff)
{
@@ -147,7 +148,7 @@ tb_socket_ref_t tb_socket_init(tb_size_t type, tb_size_t family)
tb_asse... |
make depend for unitauth.c | @@ -1108,7 +1108,9 @@ unitecs.lo unitecs.o: $(srcdir)/testcode/unitecs.c config.h $(srcdir)/util/log.h
$(srcdir)/util/net_help.h $(srcdir)/util/storage/slabhash.h $(srcdir)/edns-subnet/edns-subnet.h
unitauth.lo unitauth.o: $(srcdir)/testcode/unitauth.c config.h $(srcdir)/services/authzone.h \
$(srcdir)/util/rbtree.h $(... |
Library/OcBootManagementLib: fix (im?)possible loss of data in PanicUnpack() | @@ -64,14 +64,14 @@ PanicUnpack (
while (PackedSize >= 7) {
CopyMem (&Sequence, PackedWalker, 7);
- *UnpackedWalker++ = BitFieldRead64 (Sequence, 7 * 0, 7 * 0 + 6);
- *UnpackedWalker++ = BitFieldRead64 (Sequence, 7 * 1, 7 * 1 + 6);
- *UnpackedWalker++ = BitFieldRead64 (Sequence, 7 * 2, 7 * 2 + 6);
- *UnpackedWalker++ =... |
sim: Capture payload in TLV code
Since the signing code will also need a copy of the message, make a
local copy of it in the signature verification code, and compute the
digest all in one shot. | @@ -37,7 +37,7 @@ pub struct TlvGen {
flags: Flags,
kinds: Vec<TlvKinds>,
size: u16,
- hasher: digest::Context,
+ payload: Vec<u8>,
}
impl TlvGen {
@@ -47,7 +47,7 @@ impl TlvGen {
flags: Flags::SHA256,
kinds: vec![TlvKinds::SHA256],
size: 4 + 32,
- hasher: digest::Context::new(&digest::SHA256),
+ payload: vec![],
}
}
@... |
fix unwanted change from last commit | @@ -215,7 +215,7 @@ nc_read_until(struct nc_session *session, const char *endtag, size_t limit, uint
len = strlen(endtag);
while (1) {
- if (limit && count >= limit) {
+ if (limit && count == limit) {
free(chunk);
WRN("Session %u: reading limit (%d) reached.", session->id, limit);
ERR("Session %u: invalid input data (m... |
One more extension for Tegra T1 | @@ -67,8 +67,8 @@ endif()
if(TEGRAX1)
add_definitions(-DTEGRAX1)
- add_definitions(-pipe -march=armv8-a+simd+crypto -mcpu=cortex-a57+crypto)
- set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+simd+crypto -mcpu=cortex-a57+crypto")
+ add_definitions(-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a57+crypto)
+ set(CMAKE_ASM_F... |
Add missing add_blacklist for OpenGl apps | @@ -67,8 +67,15 @@ void imgui_init()
{
if (cfg_inited)
return;
- is_blacklisted(true);
+
parse_overlay_config(¶ms, getenv("MANGOHUD_CONFIG"));
+
+ //check for blacklist item in the config file
+ for (auto& item : params.blacklist) {
+ add_blacklist(item);
+ }
+
+ is_blacklisted(true);
notifier.params = ¶ms;
sta... |
doc: update tools docs to use vm-ubuntu name | @@ -83,7 +83,7 @@ Use the ``list`` command to display VMs and their state:
# acrnctl list
vm1-14:59:30 untracked
- vm-yocto stopped
+ vm-ubuntu stopped
vm-android stopped
Start VM
@@ -94,7 +94,7 @@ command:
.. code-block:: none
- # acrnctl start vm-yocto
+ # acrnctl start vm-ubuntu
Stop VM
=======
@@ -103,7 +103,7 @@ U... |
Add PhGetInternalWindowIcon | @@ -1702,3 +1702,32 @@ BOOLEAN PhShowRunFileDialog(
return result;
}
+
+HICON PhGetInternalWindowIcon(
+ _In_ HWND WindowHandle,
+ _In_ UINT Type
+ )
+{
+ static PH_INITONCE initOnce = PH_INITONCE_INIT;
+ static HICON (WINAPI *InternalGetWindowIcon_I)(
+ _In_ HWND WindowHandle,
+ _In_ ULONG Type
+ ) = NULL;
+
+ if (PhB... |
updating package counts in README | @@ -23,11 +23,11 @@ pre-packaged binary RPMs available per architecture type are summarized as follo
Base OS | aarch64 | x86_64 | noarch
:---: | :---: | :---: | :---:
-CentOS 7.5 | 329 | 558 | 35
-SLES 12 SP3 | 337 | 561 | 35
+CentOS 7.5 | 407 | 724 | 45
+SLES 12 SP3 | 414 | 727 | 45
A list of all available components ... |
LICENSE; mention 3-clause BSD for LwIP, tinycrypt, and STM32CubeF7. | @@ -289,6 +289,13 @@ This product bundles parts of STM32CubeF4 1.5, which is available under the
* hw/bsp/stm32f4discovery/include/bsp/stm32f4xx_hal_conf.h
* hw/bsp/stm32f4discovery/src/system_stm32f4xx.c
+This product bundles parts of STM32CubeF7, which is available under the
+"3-clause BSD" license. Bundled files are... |
netkvm: make code for getting module path reusable | @@ -259,11 +259,7 @@ public:
}
bool Install()
{
- CString s;
- HMODULE hModule = GetModuleHandleW(NULL);
- WCHAR path[MAX_PATH];
- GetModuleFileName(hModule, path, MAX_PATH);
- s = path;
+ CString s = BinaryPath();
CServiceManager mgr;
bool b = mgr.Install(ServiceName(), s);
return b;
@@ -283,6 +279,15 @@ public:
{
ret... |
The Cygwin gcc doesn't define _WIN32, don't pretend it does | @@ -105,7 +105,7 @@ void OPENSSL_cpuid_setup(void)
}
#endif
-#if defined(_WIN32) && !defined(__CYGWIN__)
+#if defined(_WIN32)
# include <tchar.h>
# include <signal.h>
# ifdef __WATCOMC__
@@ -320,7 +320,7 @@ void OPENSSL_die(const char *message, const char *file, int line)
{
OPENSSL_showfatal("%s:%d: OpenSSL internal er... |
http2: compare against zero since it's not a boolean | @@ -108,7 +108,7 @@ static void graceful_shutdown_resend_goaway(h2o_timer_t *entry)
/* After waiting a second, we still had active connections. If configured, wait one
* final timeout before closing the connections */
- if (do_close_stragglers && ctx->globalconf->http2.graceful_shutdown_timeout) {
+ if (do_close_stragg... |
Update drv_spi.c
Bug Fixed : clock division cannot been adjusted as expected due to wrong register configuration. | * Change Logs:
* Date Author Notes
* 2020-10-28 0xcccccccccccc Initial Version
+ * 2021-01-17 0xcccccccccccc Bug Fixed : clock division cannot been adjusted as expected due to wrong register configuration.
*/
/**
* @addtogroup ls2k
#ifdef RT_USING_SPI
static void spi_init(uint8_t spre_spr, uint8_t copl, uint8_t cpha)
{... |
firdespm/example: clarifying filter design in plot title | @@ -97,7 +97,7 @@ int main(int argc, char*argv[]) {
fprintf(fid,"grid on;\n");
fprintf(fid,"xlabel('normalized frequency');\n");
fprintf(fid,"ylabel('PSD [dB]');\n");
- fprintf(fid,"title(['Filter design/Kaiser window f_c: %f, S_L: %f, h: %u']);\n",
+ fprintf(fid,"title(['Filter design (firdespm) window f_c: %f, S_L: %... |
Reduce Poser Calls
I've been seeing starvation that manifests itself as weird light data coming into the disambiguator. A major cause ended up being starvation. This change will cut the frequency of poser calls by by 75% | @@ -1520,7 +1520,7 @@ int PoserTurveyTori( SurviveObject * so, PoserData * poserData )
counter++;
// let's just do this occasionally for now...
- //if (counter % 1 == 0)
+ if (counter % 4 == 0)
QuickPose(so, 0);
}
// axis changed, time to increment the circular buffer index.
|
esp32/modesp32: Add hall_sensor() function. | #include "soc/rtc_cntl_reg.h"
#include "soc/sens_reg.h"
#include "driver/gpio.h"
+#include "driver/adc.h"
#include "py/nlr.h"
#include "py/obj.h"
@@ -138,6 +139,12 @@ STATIC mp_obj_t esp32_raw_temperature(void) {
}
STATIC MP_DEFINE_CONST_FUN_OBJ_0(esp32_raw_temperature_obj, esp32_raw_temperature);
+STATIC mp_obj_t esp3... |
Update rpl-udp example readme | -A simple RPL network with UDP communication. The DAG root also acts as
-UDP server. All other nodes are client. The clients send a UDP request
-that simply includes a counter as payload. When receiving a request, The
-server sends a reply with the same counter back to the originator.
+A simple RPL network with UDP com... |
MAP: Encode ht-ratio as f64 for API. | @@ -562,14 +562,14 @@ vl_api_map_param_get_t_handler (vl_api_map_param_get_t * mp)
rmp->ip4_pool_size = clib_net_to_host_u16 (mm->ip4_reass_conf_pool_size);
rmp->ip4_buffers = clib_net_to_host_u32 (mm->ip4_reass_conf_buffers);
rmp->ip4_ht_ratio =
- clib_net_to_host_u32 ((u32) mm->ip4_reass_conf_ht_ratio);
+ clib_net_to... |
DDF add BW-SHP15 variant (_TZ3000_u5u4cakc) | {
"schema": "devcap1.schema.json",
- "manufacturername": "_TZ3000_mraovvmm",
- "modelid": "TS011F",
+ "manufacturername": ["_TZ3000_mraovvmm", "_TZ3000_u5u4cakc"],
+ "modelid": ["TS011F", "TS011F"],
"product": "BW-SHP15",
"vendor": "Blitzwolf",
"sleeper": false,
|
ensure paths are canonicalized by get_filename_component prior to comparing
This fixes an issue under windows where the root is not properly
strequal | @@ -57,11 +57,17 @@ endif()
# has version names attached to it
function(PYILMBASE_EXTRACT_REL_SITEARCH varname pyver pyexe pysitearch)
get_filename_component(_exedir ${pyexe} DIRECTORY)
- string(FIND ${pysitearch} ${_exedir} _findloc)
+ # we do this such that cmake will canonicalize the slashes
+ # so the directory sea... |
hal: fix ee.get_gpio_in command for esp32-s3 | @@ -185,7 +185,7 @@ static inline void cpu_ll_waiti(void)
static inline uint32_t cpu_ll_read_dedic_gpio_in(void)
{
uint32_t value = 0;
- asm volatile("get_gpio_in %0" : "=r"(value) : :);
+ asm volatile("ee.get_gpio_in %0" : "=r"(value) : :);
return value;
}
|
Documentation change for uLocation only: clarify that uLocationGetStart() is one-shot. | @@ -347,7 +347,9 @@ int32_t uLocationGet(uDeviceHandle_t devHandle, uLocationType_t type,
/** Get the current location, non-blocking version. uNetworkInterfaceUp()
* (see the network API) must have been called on the given networkHandle
- * for this function to work.
+ * for this function to work. This is a one-shot es... |
Improved VmaBlockMetadata_Buddy when used as a virtual allocator, to support allocation sizes down to 1 | @@ -5538,8 +5538,7 @@ public:
virtual void SetAllocationUserData(VkDeviceSize offset, void* userData);
private:
- static const VkDeviceSize MIN_NODE_SIZE = 32;
- static const size_t MAX_LEVELS = 30;
+ static const size_t MAX_LEVELS = 48;
static VkDeviceSize AlignAllocationSize(VkDeviceSize size) { return VmaNextPow2(si... |
Actually send ^D to the Urbit; handle %logo in response to shutdown. | @@ -70,6 +70,14 @@ runMaybeTermOutput t getter = case (getter t) of
Nothing -> pure ()
Just x -> runTermOutput t x
+-- Because of legacy reasons, some file operations are in the terminal
+-- driver. These should be filtered out and handled locally instead of in any
+-- abstractly connected terminal.
+isTerminalBlit :: ... |
Disabled tests with errors related to recursion for readability of tests in docker. | @@ -128,8 +128,8 @@ add_subdirectory(metacall_node_async_test)
add_subdirectory(metacall_node_reentrant_test)
add_subdirectory(metacall_node_port_test)
add_subdirectory(metacall_node_port_await_test)
-add_subdirectory(metacall_node_python_port_mock_test)
-add_subdirectory(metacall_node_python_port_ruby_test)
+# add_sub... |
Python bindings now uses python3 specifically | @@ -128,7 +128,7 @@ file(GLOB REDIST_HEADERS
install(FILES ${REDIST_HEADERS} DESTINATION include/libsurvive/redist)
if(PYTHON_GENERATED_DIR)
- find_package (Python COMPONENTS Interpreter Development)
+ find_package (Python3 COMPONENTS Interpreter Development)
find_program(CTYPESGEN ctypesgen REQUIRED)
message("-- Build... |
Initialize throttle params before starting throttle maint task | @@ -1322,11 +1322,11 @@ ikvdb_open(
if (rp.low_mem || mavail < 32)
ikvdb_low_mem_adjust(self);
- tbkt_init(&self->ikdb_tb, self->ikdb_rp.throttle_burst, self->ikdb_rp.throttle_rate);
-
kvdb_rparams_print(&rp);
throttle_init(&self->ikdb_throttle, &self->ikdb_rp);
+ throttle_init_params(&self->ikdb_throttle, &self->ikdb_... |
Fix test_good_cdata_ascii() to work for builds | @@ -2259,7 +2259,7 @@ END_TEST
START_TEST(test_good_cdata_ascii)
{
const char *text = "<a><![CDATA[<greeting>Hello, world!</greeting>]]></a>";
- const char *expected = "<greeting>Hello, world!</greeting>";
+ const XML_Char *expected = XCS("<greeting>Hello, world!</greeting>");
CharData storage;
CharData_Init(&storage);... |
updated cc26xx-web-demo to new ext-flash api | @@ -195,15 +195,15 @@ save_config()
int rv;
cc26xx_web_demo_sensor_reading_t *reading = NULL;
- rv = ext_flash_open();
+ rv = ext_flash_open(NULL);
if(!rv) {
printf("Could not open flash to save config\n");
- ext_flash_close();
+ ext_flash_close(NULL);
return;
}
- rv = ext_flash_erase(CONFIG_FLASH_OFFSET, sizeof(cc26xx... |
extmod/modrobotics: add drivebase controls
Enable settings getters and setters for drivebase. This uses the same control interface as single motors. | #include "pberror.h"
#include "pbobj.h"
#include "pbkwarg.h"
+
+#include "modbuiltins.h"
#include "modmotor.h"
#include "modlogger.h"
@@ -25,6 +27,8 @@ typedef struct _robotics_DriveBase_obj_t {
motor_Motor_obj_t *left;
motor_Motor_obj_t *right;
mp_obj_t logger;
+ mp_obj_t heading_control;
+ mp_obj_t distance_control;
... |
Adjust doxyfile to expand MBEDTLS_PRIVATE macro. | @@ -1577,13 +1577,13 @@ ENABLE_PREPROCESSING = YES
# compilation will be performed. Macro expansion can be done in a controlled
# way by setting EXPAND_ONLY_PREDEF to YES.
-MACRO_EXPANSION = NO
+MACRO_EXPANSION = YES
# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
# then the macro expansion is ... |
More changes to torii fitness calculations | @@ -386,7 +386,7 @@ FLT getPointFitnessForPna(Point pointIn, PointsAndAngle *pna)
return dist;
}
-int compareFlts(const void * b, const void * a)
+int compareFlts(const void * a, const void * b)
{
FLT a2 = *(const FLT*)a;
FLT b2 = *(const FLT*)b;
@@ -411,7 +411,7 @@ FLT getPointFitness(Point pointIn, PointsAndAngle *pn... |
add platfrom flug | void suctionInit()
{
+#ifdef PLATFORM
pinMode(RELAY_PIN, OUTPUT);
+#endif
}
void suctionOn()
{
+#ifdef PLATFORM
digitalWrite(RELAY_PIN, HIGH);
+#endif
}
void suctionOff()
{
+#ifdef PLATFORM
digitalWrite(RELAY_PIN, LOW);
+#endif
}
|
Don't run OCSP tests when OCSP is disabled | @@ -168,6 +168,10 @@ checkhandshake($proxy, checkhandshake::RESUME_HANDSHAKE,
"Resumption handshake test");
unlink $session;
+SKIP: {
+ skip "No OCSP support in this OpenSSL build", 3
+ if disabled("ocsp");
+
#Test 3: A status_request handshake (client request only)
$proxy->clear();
$proxy->clientflags("-no_tls1_3 -sta... |
chip/it83xx/config_chip_it8xxx2.h: Format with clang-format
BRANCH=none
TEST=none | #define IT83XX_INTC_PLUG_IN_OUT_SUPPORT
/* Chip IT83202BX actually has TCPC physical port count. */
#define IT83XX_USBPD_PHY_PORT_COUNT 3
-#elif defined(CHIP_VARIANT_IT81302AX_1024) \
-|| defined(CHIP_VARIANT_IT81202AX_1024) \
-|| defined(CHIP_VARIANT_IT81302BX_1024) \
-|| defined(CHIP_VARIANT_IT81302BX_512) \
-|| defi... |
cc2538-rf: More compact implementation of getting RSSIs | #define LQI_BIT_MASK 0x7F
/* RSSI Offset */
#define RSSI_OFFSET 73
+#define RSSI_INVALID -128
/* 192 usec off -> on interval (RX Callib -> SFD Wait). We wait a bit more */
#define ONOFF_TIME RTIMER_ARCH_SECOND / 3125
@@ -244,10 +245,11 @@ get_rssi(void)
on();
}
- /* Wait on RSSI_VALID */
- while((REG(RFCORE_XREG_RSSIST... |
Fix logic for 1 pixel high/wide preview images (Fixes | @@ -120,8 +120,8 @@ generatePreview (const char inFileName[],
previewHeight = max (int (h / (w * a) * previewWidth + .5f), 1);
previewPixels.resizeErase (previewHeight, previewWidth);
- float fx = (previewWidth > 0)? (float (w - 1) / (previewWidth - 1)): 1;
- float fy = (previewHeight > 0)? (float (h - 1) / (previewHei... |
Free lookupKey in elektraClose | @@ -68,8 +68,9 @@ Elektra * elektraOpen (const char * application, ElektraError ** error)
void elektraClose (Elektra * elektra)
{
kdbClose (elektra->kdb, elektra->parentKey);
- ksDel (elektra->config);
keyDel (elektra->parentKey);
+ ksDel (elektra->config);
+ keyDel (elektra->lookupKey);
elektraFree (elektra);
}
|
OpenCoreMisc: Support BlessOverride | @@ -350,6 +350,8 @@ OcMiscBoot (
UINT32 Index;
UINT32 EntryIndex;
OC_INTERFACE_PROTOCOL *Interface;
+ UINTN BlessOverrideSize;
+ CHAR16 **BlessOverride;
//
// Do not use our boot picker unless asked.
@@ -399,6 +401,45 @@ OcMiscBoot (
return;
}
+ if (Config->Misc.BlessOverride.Count > 0) {
+ if (!OcOverflowMulUN (
+ Con... |
Fix newTexture; | @@ -895,6 +895,7 @@ static int l_lovrGraphicsNewTexture(lua_State* L) {
TextureInfo info = {
.type = TEXTURE_2D,
.format = FORMAT_RGBA8,
+ .layers = 1,
.mipmaps = ~0u,
.samples = 1,
.usage = TEXTURE_SAMPLE,
@@ -917,10 +918,9 @@ static int l_lovrGraphicsNewTexture(lua_State* L) {
info.imageCount = luax_len(L, index++);
... |
Update an overlooked instance of xcode 10.0 as well | @@ -233,7 +233,7 @@ matrix:
- BTYPE="TARGET=NEHALEM BINARY=64 INTERFACE64=1 FC=gfortran-10"
- <<: *test-macos
- osx_image: xcode10.0
+ osx_image: xcode11.5
env:
- BTYPE="TARGET=NEHALEM BINARY=32 NOFORTRAN=1"
|
apps/loraping: Fix compilation issues
Error: Settings defined by multiple packages:
LORA_MAC_TIMER_NUM:
Error: repos/apache-mynewt-core/hw/drivers/lora/sx1276/src/sx1276.c:29:2: error: #error "Must define a Lora MAC timer number"
#error "Must define a Lora MAC timer number"
^~~~~ | @@ -23,10 +23,6 @@ syscfg.defs:
Used by package management system to include mfrg firmware.
value: 1
- LORA_MAC_TIMER_NUM:
- description: Timer number used for lora mac and radio
- value: -1
-
syscfg.vals:
STATS_CLI: 1
STATS_NAMES: 1
|
Fix multiple STATUS lines for the same status code. | @@ -875,7 +875,8 @@ do_tests(cups_file_t *outfile, /* I - Output file */
int num_statuses = 0; /* Number of valid status codes */
_cups_status_t statuses[100], /* Valid status codes */
*last_status; /* Last STATUS (for predicates) */
- int num_expects = 0; /* Number of expected attributes */
+ int status_ok, /* Did we ... |
Browser animations | @@ -10,7 +10,7 @@ import UIKit
import SafariServices
/// The main file browser used to edit scripts.
-class DocumentBrowserViewController: UIDocumentBrowserViewController, UIDocumentBrowserViewControllerDelegate, UIViewControllerRestoration {
+class DocumentBrowserViewController: UIDocumentBrowserViewController, UIDocu... |
Fix link for error codes in the documentation | @@ -121,7 +121,7 @@ psa_status_t psa_its_get(psa_storage_uid_t uid,
*
* \retval #PSA_SUCCESS The operation completed successfully
* \retval #PSA_ERROR_DOES_NOT_EXIST The operation failed because the provided uid value was not found in the storage
- * \retval #PSA_ERROR_STORAGE_FAILURE The operation failed because the p... |
in_statsd: add missing type casting | @@ -266,7 +266,7 @@ static int cb_statsd_init(struct flb_input_instance *ins,
else {
port = DEFAULT_PORT;
}
- snprintf(ctx->port, sizeof(ctx->port), "%hu", port);
+ snprintf(ctx->port, sizeof(ctx->port), "%hu", (unsigned short) port);
/* Export plugin context */
flb_input_set_context(ins, ctx);
|
COIL: Remove non-inclusive words from common mock
BRANCH=none
TEST=make runhosttests | @@ -515,7 +515,7 @@ uint16_t mock_tcpci_get_reg(int reg_offset)
return tcpci_regs[reg_offset].value;
}
-int tcpci_i2c_xfer(int port, uint16_t slave_addr_flags,
+int tcpci_i2c_xfer(int port, uint16_t addr_flags,
const uint8_t *out, int out_size,
uint8_t *in, int in_size, int flags)
{
@@ -525,8 +525,8 @@ int tcpci_i2c_xf... |
bugID:18002625:[breeze] add OTA dependence on auth. | @@ -21,6 +21,9 @@ GLOBAL_DEFINES += BUILD_AOS
bz_en_ota ?= 0
ifeq ($(bz_en_ota),1)
+ifeq ($(bz_en_auth), 0)
+$(error OTA need authentication, please set "bz_en_auth = 1")
+endif
GLOBAL_DEFINES += CONFIG_AIS_OTA
$(NAME)_COMPONENTS += ota_ble
endif
|
vere: improves error handling in pill download | @@ -259,10 +259,12 @@ _king_get_atom(c3_c* url_c)
if ( CURLE_OK != result ) {
u3l_log("failed to fetch %s: %s\n",
url_c, curl_easy_strerror(result));
+ u3_king_bail();
exit(1);
}
if ( 300 <= cod_l ) {
u3l_log("error fetching %s: HTTP %ld\n", url_c, cod_l);
+ u3_king_bail();
exit(1);
}
|
cosmetics in status out | @@ -504,7 +504,7 @@ if(actioncount > 0) printf("ACTION (total)...........................: %ld\n",
if(awdlcount > 0) printf("AWDL (Apple Wireless Direct Link)........: %ld\n", awdlcount);
if(proberequestcount > 0) printf("PROBEREQUEST.............................: %ld\n", proberequestcount);
if(proberequestdirectedcoun... |
Force DWARF4 for Valgrind | @@ -136,6 +136,8 @@ macro(astcenc_set_properties NAME)
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-reserved-identifier>
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-cast-function-type>
+ # Force DWARF4 for Valgrind profiling
+ $<$<CXX_COMPILER_ID:Clang>:-gdwarf-4>
$<$<CXX_COMPILER_ID:Clang>:-Wdocumentation>)
target_link_options(${N... |
ANI_BLOCKSTART (transition to blocking) animation now works for players. | @@ -24335,12 +24335,19 @@ void common_block()
// Controlling player is holding special key.
int hb2 = ((player + self->playerindex)->keys & FLAG_SPECIAL);
+ // If we are in a block transition, let's see if it is finished.
+ // If it is, apply block animation.
+ if (self->animnum == ANI_BLOCKSTART && !self->animating)
+... |
Update ForceNoParent default setting | @@ -61,7 +61,7 @@ VOID PhAddDefaultSettings(
PhpAddStringSetting(L"FileBrowseExecutable", L"%SystemRoot%\\explorer.exe /select,\"%s\"");
PhpAddIntegerSetting(L"FirstRun", L"1");
PhpAddStringSetting(L"Font", L""); // null
- PhpAddIntegerSetting(L"ForceNoParent", L"0");
+ PhpAddIntegerSetting(L"ForceNoParent", L"1");
Php... |
Update arm_rfft_fast_f16.c | @@ -477,7 +477,7 @@ void merge_rfft_f16(
of the symmetry properties of the FFT and have a speed advantage over complex
algorithms of the same length.
@par
- The Fast RFFT algorith relays on the mixed radix CFFT that save processor usage.
+ The Fast RFFT algorithm relays on the mixed radix CFFT that save processor usage... |
test-suite: bump version for test-suite | # Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
-AC_INIT([test-suite], [1.3.8], [https://github.com/openhpc/ohpc])
+AC_INIT([test-suite], [2.0.0], [https://github.com/openhpc/ohpc])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.14])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]... |
Fix rounding in sRGB constant color block decode
Fix | @@ -75,11 +75,14 @@ static uint4 lerp_color_int(
ecolor0 = int4(ecolor0.x >> 8, ecolor0.y >> 8, ecolor0.z >> 8, ecolor0.w >> 8);
ecolor1 = int4(ecolor1.x >> 8, ecolor1.y >> 8, ecolor1.z >> 8, ecolor1.w >> 8);
}
+
int4 color = (ecolor0 * eweight0) + (ecolor1 * eweight1) + int4(32, 32, 32, 32);
color = int4(color.x >> 6,... |
Deprecate script/preprocess-wuffs.go | // +build ignore
+// Deprecated: unused as of commit 695a6815 "Remove gif.config_decoder".
+
// TODO: consider renaming this from script/preprocess-wuffs.go to
// cmd/wuffspreprocess, making it a "go install"able command line tool.
|
opts: complete long options | @@ -69,12 +69,22 @@ typedef float opt_fvec3_t[3];
#define OPT_SELECT(c, T, ptr, value, descr) { (c), NULL, false, opt_select, OPT_SEL(T, TYPE_CHECK(T*, ptr), value), "\t" descr }
#define OPT_SUBOPT(c, argname, descr, NR, opts) OPT_ARG(c, opt_subopt, struct opt_subopt_s, OPT_SUB(NR, opts), argname, descr)
-// If the cha... |
config_tools: bugfix for saving all enum values
fix the issue that saves all enum values are saved in scenario xml file
if user doesn't select any value in configurator. | @@ -137,8 +137,8 @@ export default {
this.defaultVal = []
}
this.defaultVal.push({
- "use_type": this.ConsoleUseType,
- "backend_type": this.ConsoleBackendType,
+ "use_type": "",
+ "backend_type": "",
"output_file_path": "",
"sock_file_path": "",
"tty_device_path": "",
|
Fix memleak in test/provider_test.c
This memory leak is triggered when configuring with 'no-legacy' | @@ -191,12 +191,15 @@ static int test_builtin_provider_with_child(void)
* In this case we assume we've been built with "no-legacy" and skip
* this test (there is no OPENSSL_NO_LEGACY)
*/
+ OSSL_LIB_CTX_free(libctx);
return 1;
}
if (!TEST_true(OSSL_PROVIDER_add_builtin(libctx, name,
- PROVIDER_INIT_FUNCTION_NAME)))
+ PR... |
Fix Fix tabspace | @@ -263,7 +263,7 @@ PPH_STRING PhGetGroupAttributesString(
else
{
if (Attributes & SE_GROUP_ENABLED_BY_DEFAULT)
- string = PhCreateString(L"Disabled (modified");
+ string = PhCreateString(L"Disabled (modified)");
else
string = PhCreateString(L"Disabled");
}
@@ -419,9 +419,7 @@ VOID PhpUpdateSidsFromTokenGroups(
{
PPHP_... |
Update yfm for ya tool to 2.10.4 | },
"yfm": {
"formula": {
- "sandbox_id": 618755316,
+ "sandbox_id": 621597385,
"match": "yfm"
},
"executable": {
|
CMake: Set luajit EXCLUDE_FROM_ALL;
This prints a warning but it's nice to not build the luajit executable.
Ideally the target would not be created at all but the CMakeLists we
are using does not expose this as an option.
This is congruent with the vanilla Lua build options. | @@ -119,6 +119,7 @@ if(LOVR_USE_LUAJIT AND NOT EMSCRIPTEN)
set(LOVR_LUA ${LUAJIT_LIBRARIES})
else()
add_subdirectory(deps/luajit luajit)
+ set_target_properties(luajit PROPERTIES EXCLUDE_FROM_ALL 1)
include_directories(deps/luajit/src ${CMAKE_BINARY_DIR}/luajit)
set(LOVR_LUA libluajit)
endif()
|
Update: less motorbabbling, if it's too extreme new ops are called before relevant consequences can be seen, making it harder for the system to see the right relationships | //Truth expectation needed for executions
#define DECISION_THRESHOLD_INITIAL 0.501
//Motor babbling chance
-#define MOTOR_BABBLING_CHANCE_INITIAL 0.2
+#define MOTOR_BABBLING_CHANCE_INITIAL 0.1
//Decisions above the following threshold will suppress babbling actions
#define MOTOR_BABBLING_SUPPRESSION_THRESHOLD 0.6
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.